zru-nfc-capacitor
v1.0.0
Published
A plugin to read NFC card and send data to the Zru API
Readme
zru-nfc-capacitor
A plugin to read NFC card and send data to Zru API
Install
npm install zru-nfc-capacitor
npx cap syncAPI
echo(...)setPublicKey(...)setToken(...)startListening(...)stopListening()addListener('cardDiscovered', ...)- Interfaces
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
setPublicKey(...)
setPublicKey(options: { publicKey: string; }) => Promise<void>| Param | Type |
| ------------- | ----------------------------------- |
| options | { publicKey: string; } |
setToken(...)
setToken(options: { token: string; }) => Promise<void>| Param | Type |
| ------------- | ------------------------------- |
| options | { token: string; } |
startListening(...)
startListening(options?: { iframeId?: string | undefined; } | undefined) => Promise<void>| Param | Type |
| ------------- | ----------------------------------- |
| options | { iframeId?: string; } |
stopListening()
stopListening() => Promise<void>addListener('cardDiscovered', ...)
addListener(eventName: 'cardDiscovered', listenerFunc: (data: { data: string; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle| Param | Type |
| ------------------ | ------------------------------------------------- |
| eventName | 'cardDiscovered' |
| listenerFunc | (data: { data: string; }) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
