Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nfcextraidplugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nfcextraidplugin

a cordova plugin to capture NFC extra id

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

A plugin for get NFC extra_id.

NOTIFY:

  • Used to android

Install:

cordova plugin add nfcextraidplugin

Method

  • cordova.plugins.NfcExtraIdPlugin.show(success,error,action);

Parameters

  • success: The callback that is called when NFC is started or stoped success.
  • error: The callback that is called when NFC is started or stoped fail.
  • action:You need to pass in a parameter of type String.When

Description

Function cordova.plugins.NfcExtraIdPlugin.show(success,error,action) checks to see if the phone has NFC
and if NFC is enabled.If everything is OK, and the action is "extra_id",the success callback is called
with a message of "Start of read task".If you pass in any String to replace action,the success callback
is called with a message of "Stop of read task".

Example :

  • This method is used to start read NFC EXTRA_ID.
function methodStart(){
    cordova.plugins.NfcExtraIdPlugin.show(success,error,"extra_id");
    function success(message){
        alert(message);
    };
    function error(message){
        alert(message);
    };
}
  • This method is used to stop read NFC EXTRA_ID.
function methodStop(){
    cordova.plugins.NfcExtraIdPlugin.show(success,error,"stop");
    function success(message){
        alert(message);
    };
    function error(message){
        alert(message);
    };
}

Keywords

FAQs

Package last updated on 27 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc