WebAPI/WebNFC: Difference between revisions

Line 231: Line 231:
  It exposes the following functions public methods to Nfc Gaia applications.
  It exposes the following functions public methods to Nfc Gaia applications.
   
   
  - parseNDEF: parse an NDEF message
  - parseNDEF           : Parse an NDEF message
  - parseHandoverNDEF: parse a NDEF message that represents a handover request
  - parseHandoverNDEF   : Parse a NDEF message that represents a handover request
        or a handover select message
                          or a handover select message
  - searchForBluetoothAC: search for a Bluetooth Alternate Carrier in a
  - searchForBluetoothAC : Search for a Bluetooth Alternate Carrier in a
        handover NDEF message
                          handover NDEF message
  - parseBluetoothSSP: Parses a Carrier Data Record that contains a
  - parseBluetoothSSP   : Parses a Carrier Data Record that contains a
        Bluetooth Secure Simple Pairing record
                          Bluetooth Secure Simple Pairing record
  - encodeHandoverRequest: returns a NDEF message that contains a handover
  - encodeHandoverRequest: Returns a NDEF message that contains a handover
        request message
                          request message
  - encodeHandoverSelect: returns a NDEF message that contains a handover
  - encodeHandoverSelect: Returns a NDEF message that contains a handover
        select message
                          select message
   
   
  Sample example to demonstrate the construction of an url as an NDEF Message:
  ''Sample example to demonstrate the construction of an url as an NDEF Message:''
   var tnf    = NDEF.TNF_WELL_KNOWN;
   var tnf    = NDEF.TNF_WELL_KNOWN;
   var type    = NDEF.RTD_URI;
   var type    = NDEF.RTD_URI;
Confirmed users
118

edits