Confirmed users
118
edits
Line 227: | Line 227: | ||
such as parse incoming NDEF records or construct NDEF records. | such as parse incoming NDEF records or construct NDEF records. | ||
- NfcUtils in {{bug|963556}} will provide some basic constants and utility functions to create and parse NDEF records and | - NfcUtils in {{bug|963556}} will provide some basic constants and utility functions to create and parse NDEF records and | ||
offers a set of utility functions to handle NDEF messages according to NFCForum-TS-NDEF_1.0. | offers a set of utility functions to handle NDEF messages according to NFCForum-TS-NDEF_1.0. | ||
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 | ||
Line 240: | Line 242: | ||
- 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; |