BlueZAdapter class

A Bluetooth adapter.

Constructors

BlueZAdapter(_BlueZObject _object)

Properties

address String
Bluetooth device address of this adapter.
no setter
addressType BlueZAddressType
The Bluetooth address type.
no setter
alias String
The alternative name for this adapter.
no setter
deviceClass int
Bluetooth device class.
no setter
discoverable bool
True if this adapter is discoverable by other Bluetooth devices.
no setter
discoverableTimeout int
no setter
discovering bool
True if currently discovering devices.
no setter
hashCode int
The hash code for this object.
no setterinherited
modalias String
Local Device ID information in modalias format used by the kernel and udev.
no setter
name String
Name of this adapter.
no setter
pairable bool
True if other Bluetooth devices can pair with this adapter.
no setter
pairableTimeout int
Timeout in seconds when pairing.
no setter
powered bool
True if this adapter is powered on.
no setter
propertiesChanged Stream<List<String>>
Stream of property names as their values change.
no setter
roles List<String>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uuids List<BlueZUUID>
List of 128-bit UUIDs that represents the available local services.
no setter

Methods

getDiscoveryFilters() Future<List<String>>
Gets the available filters that can be given to setDiscoveryFilter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeDevice(BlueZDevice device) Future<void>
Removes settings for device from this adapter.
setAlias(String value) Future<void>
Sets the alternative name for this adapter.
setDiscoverable(bool value) Future<void>
Sets if this adapter can be discovered by other Bluetooth devices.
setDiscoverableTimeout(int value) Future<void>
setDiscoveryFilter({List<String>? uuids, int? rssi, int? pathloss, String? transport, bool? duplicateData, bool? discoverable, String? pattern}) Future<void>
Sets the device discovery filter.
setPairable(bool value) Future<void>
Sets if other Bluetooth devices can pair with this adapter.
setPairableTimeout(int value) Future<void>
Sets the timeout in seconds when pairing.
setPowered(bool value) Future<void>
Sets if this adapter is powered on.
startDiscovery() Future<void>
Start discovery of devices on this adapter.
stopDiscovery() Future<void>
Stop discovery of devices on this adapter.
toString() String
A string representation of this object.
inherited

Operators

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