diff --git a/index.html b/index.html index 889e756..cf8eba7 100644 --- a/index.html +++ b/index.html @@ -1543,6 +1543,19 @@

The NDEFMessageInit dictionary is used to initialize an NDEF message.

+ +

The {{NDEFMessage}} constructor

+ The new NDEFMessage(init) constructor steps are: +
    +
  1. + Let [=this=] be the result of running the create NDEF message steps with |init:NDEFMessageSource|, `""` and `0`. + If this throws an exception, re-throw the exception and abort these steps. +
  2. +
  3. + Return [=this=]. +
  4. +
+

The NDEFRecord interface

@@ -1677,7 +1690,6 @@

{{"NotSupportedError"}} {{DOMException}} and abort these steps. -

The record type string

@@ -1943,6 +1955,21 @@

The record type string

+ +

The {{NDEFRecord}} constructor

+ The new NDEFRecord(init) constructor steps are: +
    +
  1. + Let [=this=] be the result of running the create NDEF record steps with |init|, `""` and `0`. + If this throws an exception, re-throw the exception and abort these steps. +
  2. +
  3. + Return [=this=]. +
  4. +
+
+ + @@ -2118,6 +2145,47 @@

The NDEFReader object

according to the algorithmic steps described in this specification. +

The {{NDEFReader}} constructor

+ The new NDEFReader() constructor steps are: +
    +
  1. + Initialize [=this=].{{NDEFReader/[[WriteOptions]]}} to `null`. +
  2. +
  3. + Initialize [=this=].{{NDEFReader/[[WriteMessage]]}} to `null`. +
  4. +
  5. + Return [=this=]. +
  6. +
+
+ +

The {{NDEFReadingEvent}} constructor

+ The new NDEFReadingEvent(type, init) constructor steps are: +
    +
  1. + Let [=this=] be the result of running the steps for + + DOM Event constructor given |type| and `null`. +
  2. +
  3. + If that throws, re-throw the error and abort these steps. +
  4. +
  5. + Let [=this=].{{NDEFReadingEvent/serialNumber}} be |init|'s |serialNumber|. +

    + The |serialNumber| is set by the NFC reading algorithm. +

    +
  6. +
  7. + Let [=this=].{{NDEFReadingEvent/message}} be |init|'s |message|. +
  8. +
  9. + Return [=this=]. +
  10. +
+
+

Obtaining permission

The @@ -2265,7 +2333,7 @@

The NDEFWriteOptions dictionary

The NDEFScanOptions dictionary

- To stop listening to NDEF messages, an [= AbortSignal/aborted flag =] + To stop listening to NDEF messages, an {{AbortSignal}} can be used in the NDEFScanOptions dictionary:

@@ -2313,7 +2381,7 @@ 

Writing content

of the same name if present, or `null` otherwise.
  • - If |signal|’s [= AbortSignal/aborted flag =] is set, then reject |p| + If |signal|’s {{AbortSignal}} is set, then reject |p| with an {{"AbortError"}} {{DOMException}} and return |p|.
  • @@ -3432,7 +3500,7 @@

    Writing content

    of the same name if present, or `null` otherwise.
  • - If |signal|’s [= AbortSignal/aborted flag =] is set, then reject |p| + If |signal|’s {{AbortSignal}} is set, then reject |p| with an {{"AbortError"}} {{DOMException}} and return |p|.
  • @@ -3579,11 +3647,19 @@

    Writing content

    the activated reader objects,
    1. - fire an event named "`reading`" at |reader| using - NDEFReadingEvent with its serialNumber attribute + Let |init| be a [=new=] {{NDEFReadingEventInit}} dictionary, + with its serialNumber attribute initialized to |serialNumber| and its message attribute initialized to |message|.
    2. +
    3. + Let |event| be a [=new=] {{NDEFReadingEvent}} given "`reading`" + and |init|. +
    4. +
    5. + fire an event named "`reading`" at |reader| using + |event|. +