WebIDLpedia

NDEFReader interface

Definition

Web NFC defines NDEFReader



[SecureContext, Exposed=Window]
interface NDEFReader : EventTarget {
  constructor();

  attribute EventHandler onreading;
  attribute EventHandler onreadingerror;

  Promise<undefined> scan(optional NDEFScanOptions options={});
  Promise<undefined> write(NDEFMessageSource message,
                                 optional NDEFWriteOptions options={});
  Promise<undefined> makeReadOnly(optional NDEFMakeReadOnlyOptions options={});
};

Methods and attributes that return objects implementing NDEFReader