5 Interface org.neard.Adapter
6 Object path [variable prefix]/{nfc0,nfc1,...}
8 Methods: 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
26 The adapter will start polling for targets when calling
27 this method. It is only valid when the adapter is in
30 This process will start emitting TagFound and
31 PropertyChanged "Polling" signals.
33 Possible errors: org.neard.Error.NotReady
34 org.neard.Error.Failed
35 org.neard.Error.NotSupported
39 The adapter will stop polling for targets when calling
40 this method. It is only available when the adapter is in
43 Possible errors: org.neard.Error.NotReady
44 org.neard.Error.Failed
45 org.neard.Error.NotSupported
47 object StartEmulation(dict attributes)
49 Starts tag emulation mode.
51 Adapters can only emulate one target at a time, so
52 subsequent calls to this method will always return
55 The attributes dictionary is described by the
57 For example, one would add a type, a Language, an
58 Encoding and a Representation for emulating a text
61 Returns the object path for the emulated target.
63 Possible errors: org.neard.Error.NotReady
64 org.neard.Error.Failed
65 org.neard.Error.NotSupported
69 Stops tag emulation mode.
71 Possible errors: org.neard.Error.NotReady
72 org.neard.Error.Failed
73 org.neard.Error.NotSupported
75 void Publish(dict attributes)
77 Creates an NDEF record from the attributes dictionary.
78 The NDEF is then queued for publication.
80 Only the first NDEF on the queue will be written to
81 an NFC tag while all of them will be pushed on a peer
84 The attribute argument should at least contain a
85 record type and is described by the Record properties.
86 For example, one would add a type, a Language, an
87 Encoding and a Representation for a text record.
89 Possible Errors: org.neard.Error.PermissionDenied
90 org.neard.Error.InvalidArguments
93 Signals PropertyChanged(string name, variant value)
95 This signal indicates a changed value of the given
98 TagFound(string address, dict values)
100 This signal is sent whenever an NFC tag is found,
101 as a result of a probe response reception.
103 The dictionary contains basically the same values
104 that are returned by the GetProperties method
105 from the org.neard.Tag interface.
107 TagLost(string address)
109 This signal is sent whenever the NFC tag is no longer
110 in sight, or when it's been de-activated.
113 Properties: string Mode [readwrite]
117 Valid types are "initiator" and "target".
118 The default value for the adapter mode is "initiator".
120 boolean Powered [readwrite]
122 Switch an adapter on or off.
124 boolean Polling [readonly]
126 Indicates that the adapter is currently polling for targets.
127 This is only valid when the adapter is in initiator mode.
129 array{string} Protocols [readonly]
131 The adapter supported protocols.
132 Possible values are "Felica", "MIFARE", "Jewel",
133 "ISO-DEP" and "NFC-DEP".
135 array{object} Tags [readonly]
137 The tags object paths.