-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
52 lines (41 loc) · 1.14 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
title: "NDEFRecord: recordType property"
short-title: recordType
slug: Web/API/NDEFRecord/recordType
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.NDEFRecord.recordType
---
{{SecureContext_Header}}{{SeeCompatTable}}{{APIRef("Web NFC API")}}
The **`recordType`**
property of the {{DOMxRef("NDEFRecord")}} interface returns the record type of the record.
## Syntax
```js-nolint
NDEFRecord.recordType
```
### Value
A string which can be one of the following:
- `"empty"`
- : An empty NDEF record.
- `"text"`
- : A text NDEF record.
- `"url"`
- : A URI NDEF record.
- `"smart-poster"`
- : A "smart poster" NDEF record.
- `"absolute-url"`
- : An absolute URL NDEF record.
- `"mime"`
- : A {{Glossary("MIME type")}} NDEF record.
- `"unknown"`
- : The NDEF record type is not known.
- local type name
- : Represents a local type name, frequently used to specify NDEF record embedded within
another record.
- external type name
- : A custom string consisting of a domain name and custom type name separated by a colon (":").
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}