Skip to content

Commit

Permalink
fix(nfc): fix Ndef class
Browse files Browse the repository at this point in the history
closes #713
  • Loading branch information
ihadeed committed Oct 27, 2016
1 parent 8fbf1f2 commit ac181c5
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/plugins/nfc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Plugin, Cordova } from './plugin';
import { Observable } from 'rxjs/Observable';
declare let window: any;
/**
* @name NFC
* @description
Expand Down Expand Up @@ -156,9 +157,20 @@ export class NFC {
/**
* @private
*/
export declare class Ndef {
static uriRecord(uri: string): any;
static textRecord(text: string): any;
static mimeMediaRecord(mimeType: string, payload: string): any;
static androidApplicationRecord(packageName: string): any;
export class Ndef {
private static name = 'NFC';
private static plugin = 'phonegap-nfc';
private static pluginRef = 'ndef';

@Cordova({ sync: true })
static uriRecord(uri: string): any { return; }

@Cordova({ sync: true })
static textRecord(text: string): any { return; }

@Cordova({ sync: true })
static mimeMediaRecord(mimeType: string, payload: string): any { return; }

@Cordova({ sync: true })
static androidApplicationRecord(packageName: string): any { return; }
}

0 comments on commit ac181c5

Please sign in to comment.