@@ -14,25 +14,25 @@ class NDEFRecord(options: NDEFRecordInit) extends js.Object {
14
14
* "empty", "text", "url", "smart-poster", "absolute-url", "mime", or "unknown" or else an external type name, which
15
15
* consists of a domain name and custom type name separated by a colon (":").
16
16
*/
17
- var recordType : String = js.native
17
+ def recordType : String = js.native
18
18
19
19
/** Returns the MIME type of the record. This value will be null if recordType is not equal to "mime". */
20
- var mediaType : js.UndefOr [String ] = js.native
20
+ def mediaType : js.UndefOr [String ] = js.native
21
21
22
22
/** Returns the record identifier, which is an absolute or relative URL used to identify the record.
23
23
*
24
24
* Note: The uniqueness of the identifier is enforced only by the generator of the record.
25
25
*/
26
- var id : js.UndefOr [String ] = js.native
26
+ def id : js.UndefOr [String ] = js.native
27
27
28
28
/** Returns a DataView containing the raw bytes of the record's payload. */
29
- var data : js.typedarray.DataView = js.native
29
+ def data : js.typedarray.DataView = js.native
30
30
31
31
/** Returns the encoding of a textual payload, or null otherwise. */
32
- var encoding : js.UndefOr [String ] = js.native
32
+ def encoding : js.UndefOr [String ] = js.native
33
33
34
34
/** Returns the language of a textual payload, or null if one was not supplied. */
35
- var lang : js.UndefOr [String ] = js.native
35
+ def lang : js.UndefOr [String ] = js.native
36
36
37
37
/** Converts [[NDEFRecord.data ]] to a sequence of records. This allows parsing the payloads of record types which may
38
38
* contain nested records, such as smart poster and external type records.
0 commit comments