BluetoothDevice class
By Xiao 2023/1
Constructors
-
BluetoothDevice({required String name, required String address, required int rssi, BluetoothAndroidDeviceType? androidType, int? androidDeviceClass, int? androidMajorDeviceClass, BluetoothAndroidBondState? androidBondState, Map<
String, String> ? iOSAdvertisementData}) - BluetoothDevice.fromMap(Map map)
-
factory
Properties
- address ↔ String
-
getter/setter pair
- androidBondState ↔ BluetoothAndroidBondState?
-
Android Only, @see android.bluetooth.BluetoothDevice
In iOS, it's always null.
getter/setter pair
- androidDeviceClass ↔ int?
-
Android Only, @see android.bluetooth.BluetoothDevice
In iOS, it's always null.
getter/setter pair
- androidMajorDeviceClass ↔ int?
-
Android Only, @see android.bluetooth.BluetoothDevice
In iOS, it's always null.
getter/setter pair
- androidType ↔ BluetoothAndroidDeviceType?
-
Android Only, Device type, @see android.bluetooth.BluetoothDevice.
In iOS, it's always null.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
iOSAdvertisementData
↔ Map<
String, String> ? -
iOS Only, CoreBluetooth.CBAdvertisementData
In Android, it's always null.
Format keys are defined in BluetoothIOSAdvertisementDataKey
getter/setter pair
- isLE → bool
-
no setter
- name ↔ String
-
getter/setter pair
- rssi ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited