BluetoothDevice class

Represents a remote Bluetooth device.

See: https://developer.android.com/reference/android/bluetooth/BluetoothDevice

Constructors

BluetoothDevice()

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_ACL_CONNECTED → const String
Broadcast Action: Indicates a low level (ACL) connection has been established with a remote device. [...]
"android.bluetooth.device.action.ACL_CONNECTED"
ACTION_ACL_DISCONNECT_REQUESTED → const String
Broadcast Action: Indicates that a low level (ACL) disconnection has been requested for a remote device, and it will soon be disconnected. [...]
"android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED"
ACTION_ACL_DISCONNECTED → const String
Broadcast Action: Indicates a low level (ACL) disconnection from a remote device. [...]
"android.bluetooth.device.action.ACL_DISCONNECTED"
ACTION_BOND_STATE_CHANGED → const String
Broadcast Action: Indicates a change in the bond state of a remote device. [...]
"android.bluetooth.device.action.BOND_STATE_CHANGED"
ACTION_CLASS_CHANGED → const String
Broadcast Action: Bluetooth class of a remote device has changed. [...]
"android.bluetooth.device.action.CLASS_CHANGED"
ACTION_FOUND → const String
Broadcast Action: Remote device discovered. [...]
"android.bluetooth.device.action.FOUND"
ACTION_NAME_CHANGED → const String
Broadcast Action: Indicates the friendly name of a remote device has been retrieved for the first time, or changed since the last retrieval. [...]
"android.bluetooth.device.action.NAME_CHANGED"
ACTION_PAIRING_REQUEST → const String
Broadcast Action: This intent is used to broadcast PAIRING REQUEST Requires android.Manifest.permission#BLUETOOTH_ADMIN to receive. [...]
"android.bluetooth.device.action.PAIRING_REQUEST"
ACTION_UUID → const String
Broadcast Action: This intent is used to broadcast the UUID wrapped as a android.os.ParcelUuid of the remote device after it has been fetched. [...]
"android.bluetooth.device.action.UUID"
BOND_BONDED → const int
Indicates the remote device is bonded (paired). [...]
12
BOND_BONDING → const int
Indicates bonding (pairing) is in progress with the remote device. [...]
11
BOND_NONE → const int
Indicates the remote device is not bonded (paired). [...]
10
DEVICE_TYPE_CLASSIC → const int
Bluetooth device type, Classic - BR/EDR devices. [...]
1
DEVICE_TYPE_DUAL → const int
Bluetooth device type, Dual Mode - BR/EDR/LE. [...]
3
DEVICE_TYPE_LE → const int
Bluetooth device type, Low Energy - LE-only. [...]
2
DEVICE_TYPE_UNKNOWN → const int
Bluetooth device type, Unknown. [...]
0
ERROR → const int
Sentinel error value for this class. [...]
-2147483648
EXTRA_BOND_STATE → const String
Used as an int extra field in ACTION_BOND_STATE_CHANGED intents. [...]
"android.bluetooth.device.extra.BOND_STATE"
EXTRA_CLASS → const String
Used as a Parcelable BluetoothClass extra field in ACTION_FOUND and ACTION_CLASS_CHANGED intents. [...]
"android.bluetooth.device.extra.CLASS"
EXTRA_DEVICE → const String
Used as a Parcelable BluetoothDevice extra field in every intent broadcast by this class. [...]
"android.bluetooth.device.extra.DEVICE"
EXTRA_NAME → const String
Used as a String extra field in ACTION_NAME_CHANGED and ACTION_FOUND intents. [...]
"android.bluetooth.device.extra.NAME"
EXTRA_PAIRING_KEY → const String
Used as an int extra field in ACTION_PAIRING_REQUEST intents as the value of passkey. [...]
"android.bluetooth.device.extra.PAIRING_KEY"
EXTRA_PAIRING_VARIANT → const String
Used as an int extra field in ACTION_PAIRING_REQUEST intents to indicate pairing method used. [...]
"android.bluetooth.device.extra.PAIRING_VARIANT"
EXTRA_PREVIOUS_BOND_STATE → const String
Used as an int extra field in ACTION_BOND_STATE_CHANGED intents. [...]
"android.bluetooth.device.extra.PREVIOUS_BOND_STATE"
EXTRA_RSSI → const String
Used as an optional short extra field in ACTION_FOUND intents. [...]
"android.bluetooth.device.extra.RSSI"
EXTRA_UUID → const String
Used as an extra field in ACTION_UUID intents, Contains the android.os.ParcelUuids of the remote device which is a parcelable version of UUID. [...]
"android.bluetooth.device.extra.UUID"
PAIRING_VARIANT_PASSKEY_CONFIRMATION → const int
The user will be prompted to confirm the passkey displayed on the screen or an app will confirm the passkey for the user. [...]
2
PAIRING_VARIANT_PIN → const int
The user will be prompted to enter a pin or an app will enter a pin for user. [...]
0
PHY_LE_1M → const int
Bluetooth LE 1M PHY. [...]
1
PHY_LE_1M_MASK → const int
Bluetooth LE 1M PHY mask. [...]
1
PHY_LE_2M → const int
Bluetooth LE 2M PHY. [...]
2
PHY_LE_2M_MASK → const int
Bluetooth LE 2M PHY mask. [...]
2
PHY_LE_CODED → const int
Bluetooth LE Coded PHY. [...]
3
PHY_LE_CODED_MASK → const int
Bluetooth LE Coded PHY mask. [...]
4
PHY_OPTION_NO_PREFERRED → const int
No preferred coding when transmitting on the LE Coded PHY. [...]
0
PHY_OPTION_S2 → const int
Prefer the S=2 coding to be used when transmitting on the LE Coded PHY. [...]
1
PHY_OPTION_S8 → const int
Prefer the S=8 coding to be used when transmitting on the LE Coded PHY. [...]
2
TRANSPORT_AUTO → const int
No preference of physical transport for GATT connections to remote dual-mode devices. [...]
0
TRANSPORT_BREDR → const int
Prefer BR/EDR transport for GATT connections to remote dual-mode devices. [...]
1
TRANSPORT_LE → const int
Prefer LE transport for GATT connections to remote dual-mode devices. [...]
2