@ionic-native/nfc
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -24,5 +24,14 @@ import { IonicNativePlugin } from '@ionic-native/core'; | ||
* | ||
* let message = this.ndef.textRecord('Hello world'); | ||
* this.nfc.share([message]).then(onSuccess).catch(onError); | ||
* this.nfc.addNdefListener(() => { | ||
* console.log('successfully attached ndef listener'); | ||
* }, (err) => { | ||
* console.log('error attaching ndef listener', err); | ||
* }).subscribe((event) => { | ||
* console.log('received ndef message. the tag contains: ', event.tag); | ||
* console.log('decoded tag id', this.nfc.bytesToHexString(event.tag.id)); | ||
* | ||
* let message = this.ndef.textRecord('Hello world'); | ||
* this.nfc.share([message]).then(onSuccess).catch(onError); | ||
* }); | ||
* | ||
* ``` | ||
@@ -29,0 +38,0 @@ */ |
13
index.js
@@ -44,5 +44,14 @@ var __extends = (this && this.__extends) || (function () { | ||
* | ||
* let message = this.ndef.textRecord('Hello world'); | ||
* this.nfc.share([message]).then(onSuccess).catch(onError); | ||
* this.nfc.addNdefListener(() => { | ||
* console.log('successfully attached ndef listener'); | ||
* }, (err) => { | ||
* console.log('error attaching ndef listener', err); | ||
* }).subscribe((event) => { | ||
* console.log('received ndef message. the tag contains: ', event.tag); | ||
* console.log('decoded tag id', this.nfc.bytesToHexString(event.tag.id)); | ||
* | ||
* let message = this.ndef.textRecord('Hello world'); | ||
* this.nfc.share([message]).then(onSuccess).catch(onError); | ||
* }); | ||
* | ||
* ``` | ||
@@ -49,0 +58,0 @@ */ |
{ | ||
"name": "@ionic-native/nfc", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
@@ -5,0 +5,0 @@ "module": "index.js", |
@@ -0,0 +0,0 @@ <a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/nfc/index.ts#L3"> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39980
518