mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
feat(nfc): add support for iOS (#2050)
* Added missing methods beginSession and invalidateSession for iOS support * Removed invalidateSession function and package-lock.json * added current package-lock again
This commit is contained in:
parent
7c2a761078
commit
9f72592fcc
@ -71,6 +71,21 @@ export interface NdefTag {
|
||||
*/
|
||||
@Injectable()
|
||||
export class NFC extends IonicNativePlugin {
|
||||
/**
|
||||
* Starts the NFCNDEFReaderSession allowing iOS to scan NFC tags.
|
||||
* @param onSuccess
|
||||
* @param onFailure
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
@Cordova({
|
||||
observable: true,
|
||||
successIndex: 0,
|
||||
errorIndex: 3,
|
||||
clearFunction: 'invalidateSession',
|
||||
clearWithArgs: true
|
||||
})
|
||||
beginSession(onSuccess?: Function, onFailure?: Function): Observable<any> { return; }
|
||||
|
||||
/**
|
||||
* Registers an event listener for any NDEF tag.
|
||||
* @param onSuccess
|
||||
|
Loading…
Reference in New Issue
Block a user