BlueZAdapter class

A Bluetooth adapter (HCI controller) managed by BlueZ.

Properties

address String
Bluetooth address of the adapter.
no setter
alias String
User-friendly alias.
no setter
discoverable bool
Whether the adapter is discoverable.
no setter
discoverableTimeout int
Discoverable timeout in seconds.
no setter
discovering bool
Whether the adapter is currently scanning.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
Adapter name (kernel).
no setter
objectPath String
D-Bus object path, e.g. /org/bluez/hci0.
no setter
pairable bool
Whether the adapter is pairable.
no setter
powered bool
Whether the adapter is powered on.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uuids List<BlueZUUID>
UUIDs of supported profiles.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeDevice(String devicePath) Future<void>
Remove a discovered device from BlueZ's cache.
setDiscoverable(bool value) Future<void>
Set whether the adapter is discoverable.
setDiscoveryFilter({BlueZDiscoveryTransport? transport, int? rssiThreshold, List<String>? uuids}) Future<void>
Set discovery filter (transport, RSSI threshold, UUIDs).
setPairable(bool value) Future<void>
Set whether the adapter is pairable.
setPowered(bool value) Future<void>
Power the adapter on or off.
startDiscovery() Future<void>
Start scanning for nearby Bluetooth devices.
stopDiscovery() Future<void>
Stop scanning.
toString() String
A string representation of this object.
inherited
updateProps(BlueZAdapterProps partial) → void

Operators

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