BluetoothHeadset.ActionVendorSpecificHeadsetEvent Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Intent used to broadcast that the headset has posted a vendor-specific event.
[Android.Runtime.Register("ACTION_VENDOR_SPECIFIC_HEADSET_EVENT")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public const string ActionVendorSpecificHeadsetEvent;
[<Android.Runtime.Register("ACTION_VENDOR_SPECIFIC_HEADSET_EVENT")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
val mutable ActionVendorSpecificHeadsetEvent : string
Field Value
Implements
- Attributes
Remarks
Intent used to broadcast that the headset has posted a vendor-specific event.
This intent will have 4 extras and 1 category.
<ul> <li>BluetoothDevice#EXTRA_DEVICE
- The remote Bluetooth Device <li>#EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD
- The vendor specific command <li>#EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE
- The AT command type which can be one of #AT_CMD_TYPE_READ
, #AT_CMD_TYPE_TEST
, or #AT_CMD_TYPE_SET
, #AT_CMD_TYPE_BASIC
,#AT_CMD_TYPE_ACTION
. <li>#EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS
- Command arguments. </ul>
The category is the Company ID of the vendor defining the vendor-specific command. BluetoothAssignedNumbers
For example, for Plantronics specific events Category will be #VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY
.55
For example, an AT+XEVENT=foo,3 will get translated into
<ul> <li>EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD = +XEVENT <li>EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE = AT_CMD_TYPE_SET <li>EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS = foo, 3 </ul>
Java documentation for android.bluetooth.BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.