BlueZClient class

A client that connects to BlueZ.

Constructors

BlueZClient({DBusClient? bus})
Creates a new BlueZ client. If bus is provided connect to the given D-Bus server.

Properties

adapterAdded Stream<BlueZAdapter>
Stream of adapters as they are added.
no setter
adapterRemoved Stream<BlueZAdapter>
Stream of adapters as they are removed.
no setter
adapters List<BlueZAdapter>
The adapters present on this system. Use adapterAdded and adapterRemoved to detect when this list changes.
no setter
deviceAdded Stream<BlueZDevice>
Stream of devices as they are added.
no setter
deviceRemoved Stream<BlueZDevice>
Stream of devices as they are removed.
no setter
devices List<BlueZDevice>
The devices on this system. Use deviceAdded and deviceRemoved to detect when this list changes.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Terminates all active connections. If a client remains unclosed, the Dart process may not terminate.
connect() Future<void>
Connects to the BlueZ daemon. Must be called before accessing methods and properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAgent(BlueZAgent agent, {DBusObjectPath? path, dynamic capability = BlueZAgentCapability.keyboardDisplay}) Future<void>
Registers an agent handler. A D-Bus object will be registered on path, which the user must choose to not collide with any other path on the D-Bus client that was passed in the BlueZClient constructor.
requestDefaultAgent() Future<void>
Requests that the agent set with registerAgent is the system default agent.
toString() String
A string representation of this object.
inherited
unregisterAgent() Future<void>
Unregisters the agent handler previouly registered with registerAgent.

Operators

operator ==(Object other) bool
The equality operator.
inherited