From: Adam Szczerbiak
Date: Tue, 5 Jan 2016 10:44:27 +0000 (+0100)
Subject: NFC module rewritten to comply with task #914
X-Git-Tag: tizen_3.0/TD_SYNC/20161201~233^2
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bb7bd79deccd29e02f6becca0d49263d610ffa2;p=sdk%2Fonline-doc.git
NFC module rewritten to comply with task #914
Change-Id: Ie73a5b3f85062f2855873d1ee21d1eaf31940258
Signed-off-by: Adam Szczerbiak
---
diff --git a/org.tizen.web.apireference/html/device_api/mobile/tizen/nfc.html b/org.tizen.web.apireference/html/device_api/mobile/tizen/nfc.html
index 4d038a8..6ea770f 100644
--- a/org.tizen.web.apireference/html/device_api/mobile/tizen/nfc.html
+++ b/org.tizen.web.apireference/html/device_api/mobile/tizen/nfc.html
@@ -2839,6 +2839,16 @@ The NDEFMessage must have at least one NDEFRecord.
1.0
+
+
Code example:
+// prepare two NDEFRecords:
+var myRecordURI = new tizen.NDEFRecordURI("https://www.tizen.org/");
+var myRecordTextPlain = new tizen.NDEFRecordMedia("text/plain", [116, 105, 122, 101, 110]);
+
+// create a NDEFMessage composed of two NDEFRecords:
+var myMessage = new NDEFMessage([myRecordURI, myRecordTextPlain]);
+
+
@@ -3000,10 +3010,9 @@ The byte array contains
0 to
(2 ** 32 - 1) bytes.
1.0
-
Code example:
// Creates a new NDEF record.
- var newRecord = new tizen.NDEFRecordURI("https://www.tizen.org/");
- var payload = newRecord.payload;
-
+
Code example:
+ var newRecord = new tizen.NDEFRecord(2, [42, 84], [1, 2, 3, 4]);
+
@@ -3064,6 +3073,11 @@ The byte array contains
0 to
(2 ** 32 - 1) bytes.
1.0
+
+
Code example:
+ var newRecord = new tizen.NDEFRecordText("Tizen", "en-US", "UTF8");
+
+
@@ -3080,7 +3094,6 @@ The byte array contains 0 to (2 ** 32 - 1) bytes.
Since:
1.0
-
Constructors
NDEFRecordURI(DOMString uri);
@@ -3096,7 +3109,15 @@ The byte array contains
0 to
(2 ** 32 - 1) bytes.
Since:
1.0
-
+
+
+
Code example:
+// Creates a new NDEF record.
+var newRecord = new tizen.NDEFRecordURI("https://www.tizen.org/");
+var payload = newRecord.payload;
+
+
+