1.0.1 • Published 1 year ago
@adikorici/nfcreader v1.0.1
nfcreader
NFC Reader Plugin for Ionic Capacitor app
Install
npm install nfcreader
npx cap sync
API
echo(...)
writeNfcTag(...)
startNfcReading(...)
stopNfcReading(...)
setNfcDataCallback(...)
checkNfcAvailability(...)
readNfcTag(...)
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options | { value: string; } |
Returns: Promise<{ value: string; }>
writeNfcTag(...)
writeNfcTag(options: { data: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options | { data: string; } |
Returns: Promise<{ value: string; }>
startNfcReading(...)
startNfcReading(data: any) => Promise<any>
Param | Type |
---|---|
data | any |
Returns: Promise<any>
stopNfcReading(...)
stopNfcReading(data: any) => Promise<any>
Param | Type |
---|---|
data | any |
Returns: Promise<any>
setNfcDataCallback(...)
setNfcDataCallback(data: any) => Promise<any>
Param | Type |
---|---|
data | any |
Returns: Promise<any>
checkNfcAvailability(...)
checkNfcAvailability(options: { available: boolean; }) => Promise<{ available: boolean; }>
Param | Type |
---|---|
options | { available: boolean; } |
Returns: Promise<{ available: boolean; }>
readNfcTag(...)
readNfcTag(options: { data: string; }) => Promise<{ data: string; }>
Param | Type |
---|---|
options | { data: string; } |
Returns: Promise<{ data: string; }>
1.0.1
1 year ago