Confirmed users
118
edits
Line 228: | Line 228: | ||
- 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 a NDEF message | - parseNDEF : Parse a NDEF message | ||
- parseHandoverNDEF : Parse a NDEF message that represents a handover request | - parseHandoverNDEF : Parse a NDEF message that represents a handover request | ||
Line 242: | 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; |