BluetoothAdapterState enum
State of the local Bluetooth adapter (radio).
Richer than the typical on/off pair: unauthorized surfaces the macOS / iOS privacy (TCC) state where the radio works but the app lacks permission, and unavailable covers machines with no Bluetooth radio at all.
Values
- unknown → const BluetoothAdapterState
-
State could not be determined yet.
-
No Bluetooth radio present on this machine.
-
Radio present but the app is not authorized to use it (macOS/iOS privacy).
- off → const BluetoothAdapterState
-
Radio is powered off.
- turningOn → const BluetoothAdapterState
-
Radio is powering on.
- on → const BluetoothAdapterState
-
Radio is powered on and usable.
- turningOff → const BluetoothAdapterState
-
Radio is powering off.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isOn → bool
-
Whether the adapter is powered on and usable right now.
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
BluetoothAdapterState> - A constant List of the values in this enum, in order of their declaration.