5 Interface org.neard.Tag
6 Object path [variable prefix]/{nfc0}/{tag0, tag1...}
8 Method dict GetProperties()
10 Returns all properties for the device. See the
11 properties section for available properties.
13 Possible Errors: org.neard.Error.DoesNotExist
15 void SetProperty(string name, variant value)
17 Changes the value of the specified property. Only
18 properties that are listed a read-write are changeable.
19 On success this will emit a PropertyChanged signal.
21 Possible Errors: org.neard.Error.DoesNotExist
22 org.neard.Error.InvalidArguments
24 void Write(dict attributes)
26 Creates an NDEF record from the attributes dictionary.
28 The attribute argument should at least contain a
29 record type and is described by the Record properties.
30 For example, one would add a type, a Language, an
31 Encoding and a Representation for a text record.
32 To push raw NDEF, one should use the NDEF key and use
33 an array of bytes for the NDEF stream.
35 Possible Errors: org.neard.Error.PermissionDenied
36 org.neard.Error.InvalidArguments
37 org.neard.Error.InProgress
39 array{byte} GetRawNDEF()
41 Return the tag's NDEF as a raw bytes stream.
44 Signals PropertyChanged(string name, variant value)
46 This signal indicates a changed value of the given
50 Properties string Type [readonly]
53 Possible values are "Type 1", "Type 2", "Type 3",
54 "Type 4" and "NFC-DEP"
56 string Protocol [readonly]
58 The tag radio protocol.
59 Possible values are "Felica", "MIFARE", "Jewel",
62 array{object} Records [readonly]
64 List of NDEF records object paths.
66 boolean ReadOnly [readonly]
68 Give the current status of tag's read mode
75 Interface org.neard.Record
76 Object path [variable prefix]/{nfc0}/{tag0|device}/{record0,record1,...}
78 Method dict GetProperties()
80 Returns all properties for the record. Each record
81 has it's type and properties.
83 If type has "Text", possible properties are "Encoding",
84 "Language" and "Representation".
86 See the properties section for available properties.
88 Possible Errors: org.neard.Error.DoesNotExist
90 Properties string Type [readonly]
92 The NDEF record type name.
94 Possible values are "SmartPoster", "Text", "URI",
95 "HandoverRequest", "HandoverSelect", "HandoverCarrier".
97 string Encoding [readonly]
99 The character encoding.
101 Possible values are "UTF-8" or "UTF-16".
102 This property is only valid for Text and SmartPoster's
105 string Language [readonly]
107 The ISO/IANA language code (For example "en" or "jp").
109 This property is only valid for Text and SmartPoster's
112 string Representation [readonly]
114 The human readable representation of a text or
117 This property is only valid for Text and SmartPoster's
120 string URI [readonly]
122 The record URI (for example https://nfc-forum.org).
124 This is the complete URI, including the scheme and
126 This property is only valid for SmartPoster's URI records.
128 string MIMEType [readonly]
130 The URI object MIME type.
132 This is a description of the MIME type of the object
134 This is not a mandatory field and is only valid for
135 Smart Posters carrying a URI record.
137 uint32 Size [readonly]
141 This is the size of the object the URI points at.
142 It should be used by applications to decide if they can
143 afford to fetch the object or not.
144 This is not a mandatory field and is only valid for
145 Smart Posters carrying a URI record.
147 string Action [readonly]
149 The suggested course of action.
151 This one is only valid for Smart Posters and is a
152 suggestion only. It can be ignored, and the possible
153 values are "Do" (for example launch the browser),
154 "Save" (for example save the URI in the bookmarks folder,
155 or "Edit" (for example open the URI in an URI editor for
156 the user to modify it.