AdapterState enum

The Bluetooth adapter's power state, delivered on Bluetooth.adapterStates.

This is the radio/adapter state (is Bluetooth on?), distinct from PermissionStatus (is the app authorized?).

Inheritance
Available extensions

Values

unknown → const AdapterState

State not yet known.

poweredOn → const AdapterState

The adapter is on and usable.

poweredOff → const AdapterState

The adapter is off (the user or system turned Bluetooth off).

unsupported → const AdapterState

No usable Bluetooth adapter on this host.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

Static Methods

fromNative(String state) AdapterState
Parses the lowercase state string the native layer emits (btleplug's CentralState): poweredon, poweredoff, or unknown.

Constants

values → const List<AdapterState>
A constant List of the values in this enum, in order of their declaration.