BluetoothAdapter class
Represents the local device Bluetooth adapter.
See: https://developer.android.com/reference/android/bluetooth/BluetoothAdapter
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited
Constants
- ACTION_CONNECTION_STATE_CHANGED → const String
-
Intent used to broadcast the change in connection state of the local Bluetooth adapter to a profile of the remote device. [...]
"android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED"
- ACTION_DISCOVERY_FINISHED → const String
-
Broadcast Action: The local Bluetooth adapter has finished the device discovery process. [...]
"android.bluetooth.adapter.action.DISCOVERY_FINISHED"
- ACTION_DISCOVERY_STARTED → const String
-
Broadcast Action: The local Bluetooth adapter has started the remote device discovery process. [...]
"android.bluetooth.adapter.action.DISCOVERY_STARTED"
- ACTION_LOCAL_NAME_CHANGED → const String
-
Broadcast Action: The local Bluetooth adapter has changed its friendly Bluetooth name. [...]
"android.bluetooth.adapter.action.LOCAL_NAME_CHANGED"
- ACTION_REQUEST_DISCOVERABLE → const String
-
Activity Action: Show a system activity that requests discoverable mode. [...]
"android.bluetooth.adapter.action.REQUEST_DISCOVERABLE"
- ACTION_REQUEST_ENABLE → const String
-
Activity Action: Show a system activity that allows the user to turn on Bluetooth. [...]
"android.bluetooth.adapter.action.REQUEST_ENABLE"
- ACTION_SCAN_MODE_CHANGED → const String
-
Broadcast Action: Indicates the Bluetooth scan mode of the local Adapter has changed. [...]
"android.bluetooth.adapter.action.SCAN_MODE_CHANGED"
- ACTION_STATE_CHANGED → const String
-
Broadcast Action: The state of the local Bluetooth adapter has been changed. [...]
"android.bluetooth.adapter.action.STATE_CHANGED"
- ERROR → const int
-
Sentinel error value for this class. [...]
-2147483648
- EXTRA_CONNECTION_STATE → const String
-
Extra used by
ACTION_CONNECTION_STATE_CHANGED
. [...]"android.bluetooth.adapter.extra.CONNECTION_STATE"
- EXTRA_DISCOVERABLE_DURATION → const String
-
Used as an optional int extra field in
ACTION_REQUEST_DISCOVERABLE
intents to request a specific duration for discoverability in seconds. [...]"android.bluetooth.adapter.extra.DISCOVERABLE_DURATION"
- EXTRA_LOCAL_NAME → const String
-
Used as a String extra field in
ACTION_LOCAL_NAME_CHANGED
intents to request the local Bluetooth name. [...]"android.bluetooth.adapter.extra.LOCAL_NAME"
- EXTRA_PREVIOUS_CONNECTION_STATE → const String
-
Extra used by
ACTION_CONNECTION_STATE_CHANGED
. [...]"android.bluetooth.adapter.extra.PREVIOUS_CONNECTION_STATE"
- EXTRA_PREVIOUS_SCAN_MODE → const String
-
Used as an int extra field in
ACTION_SCAN_MODE_CHANGED
intents to request the previous scan mode. [...]"android.bluetooth.adapter.extra.PREVIOUS_SCAN_MODE"
- EXTRA_PREVIOUS_STATE → const String
-
Used as an int extra field in
ACTION_STATE_CHANGED
intents to request the previous power state. [...]"android.bluetooth.adapter.extra.PREVIOUS_STATE"
- EXTRA_SCAN_MODE → const String
-
Used as an int extra field in
ACTION_SCAN_MODE_CHANGED
intents to request the current scan mode. [...]"android.bluetooth.adapter.extra.SCAN_MODE"
- EXTRA_STATE → const String
-
Used as an int extra field in
ACTION_STATE_CHANGED
intents to request the current power state. [...]"android.bluetooth.adapter.extra.STATE"
- SCAN_MODE_CONNECTABLE → const int
-
Indicates that inquiry scan is disabled, but page scan is enabled on the local Bluetooth adapter. [...]
21
- SCAN_MODE_CONNECTABLE_DISCOVERABLE → const int
-
Indicates that both inquiry scan and page scan are enabled on the local Bluetooth adapter. [...]
23
- SCAN_MODE_NONE → const int
-
Indicates that both inquiry scan and page scan are disabled on the local Bluetooth adapter. [...]
20
- STATE_CONNECTED → const int
-
The profile is in connected state. [...]
2
- STATE_CONNECTING → const int
-
The profile is in connecting state. [...]
1
- STATE_DISCONNECTED → const int
-
The profile is in disconnected state. [...]
0
- STATE_DISCONNECTING → const int
-
The profile is in disconnecting state. [...]
3
- STATE_OFF → const int
-
Indicates the local Bluetooth adapter is off. [...]
10
- STATE_ON → const int
-
Indicates the local Bluetooth adapter is on, and ready for use. [...]
12
- STATE_TURNING_OFF → const int
-
Indicates the local Bluetooth adapter is turning off. [...]
13
- STATE_TURNING_ON → const int
-
Indicates the local Bluetooth adapter is turning on. [...]
11