cordova-plugin-k-usbnfc
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ACS ACR122U NFC device PICC Cordova plugin

Cordova plugin to communication with ACR122U NFC devic via USB (OTG).

Platform Support

  • android

Usage

How to add plugin

Type following command from CLI to add this plugin

    cordova plugin add cordova-plugin-k-usbnfc

The plugin creates the object KNfcAcr122U into DOM.

Methods

connect

Description

This method should call once while platform get ready. This should call once in per application lifecycle. Once it get connected, then the device information will return into the success callback. Tag information also return into same success callback while tag is present into device.

Types

connect(
    callbackSuccess: (res: any) => void, 
    callbackError: (err: any) => void
    ): void;

disconnect

Description

This method should invoke to close the usb port for device.

Types

disconnect(
    callbackSuccess: (res: any) => void,
    callbackError: (err: any) => void
    ): void;

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i cordova-plugin-k-usbnfc

      Weekly Downloads

      2

      Version

      0.0.2

      License

      MIT

      Unpacked Size

      80.3 kB

      Total Files

      11

      Last publish

      Collaborators

      • krish-dev