BluetoothHeadset class

Public API for controlling the Bluetooth Headset Service.

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

Constructors

BluetoothHeadset()

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_AUDIO_STATE_CHANGED → const String
Intent used to broadcast the change in the Audio Connection state of the A2DP profile. [...]
"android.bluetooth.headset.profile.action.AUDIO_STATE_CHANGED"
ACTION_CONNECTION_STATE_CHANGED → const String
Intent used to broadcast the change in connection state of the Headset profile. [...]
"android.bluetooth.headset.profile.action.CONNECTION_STATE_CHANGED"
ACTION_VENDOR_SPECIFIC_HEADSET_EVENT → const String
Intent used to broadcast that the headset has posted a vendor-specific event. [...]
"android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT"
AT_CMD_TYPE_ACTION → const int
AT command type ACTION used with EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE For example, AT+CHUP. [...]
4
AT_CMD_TYPE_BASIC → const int
AT command type BASIC used with EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE For example, ATD. [...]
3
AT_CMD_TYPE_READ → const int
AT command type READ used with EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE For example, AT+VGM?. [...]
0
AT_CMD_TYPE_SET → const int
AT command type SET used with EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE For example, AT+VGM=. [...]
2
AT_CMD_TYPE_TEST → const int
AT command type TEST used with EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE For example, AT+VGM=?. [...]
1
EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS → const String
A Parcelable String array extra field in ACTION_VENDOR_SPECIFIC_HEADSET_EVENT intents that contains the arguments to the vendor-specific command. [...]
"android.bluetooth.headset.extra.VENDOR_SPECIFIC_HEADSET_EVENT_ARGS"
EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD → const String
A String extra field in ACTION_VENDOR_SPECIFIC_HEADSET_EVENT intents that contains the name of the vendor-specific command. [...]
"android.bluetooth.headset.extra.VENDOR_SPECIFIC_HEADSET_EVENT_CMD"
EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE → const String
An int extra field in ACTION_VENDOR_SPECIFIC_HEADSET_EVENT intents that contains the AT command type of the vendor-specific command. [...]
"android.bluetooth.headset.extra.VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE"
STATE_AUDIO_CONNECTED → const int
See: https://developer.android.com/reference/android/bluetooth/BluetoothHeadset#STATE_AUDIO_CONNECTED
12
STATE_AUDIO_CONNECTING → const int
Headset state when SCO audio is connecting. [...]
11
STATE_AUDIO_DISCONNECTED → const int
Headset state when SCO audio is not connected. [...]
10
VENDOR_RESULT_CODE_COMMAND_ANDROID → const String
A vendor-specific command for unsolicited result code. [...]
"+ANDROID"
VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY → const String
The intent category to be used with ACTION_VENDOR_SPECIFIC_HEADSET_EVENT for the companyId. [...]
"android.bluetooth.headset.intent.category.companyid"