BBState enum

The power/availability state of the device's Bluetooth adapter, exposed via BBManager.state. When this isn't poweredOn, every BBDevice's connection is reset.

Inheritance
Available extensions

Values

unknown → const BBState

The state hasn't been determined yet -- typically the initial value before the native side reports a state.

resetting → const BBState

The adapter is temporarily resetting; connections and scans are dropped and will need to be restarted once it settles into another state.

unsupported → const BBState

This device doesn't support Bluetooth Low Energy.

unauthorized → const BBState

The app isn't authorized to use Bluetooth. See BBAuthorization.

poweredOff → const BBState

Bluetooth is turned off. Scanning and connecting are unavailable until it's powered on.

poweredOn → const BBState

Bluetooth is turned on and available for scanning and connecting.

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

Constants

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