Android.Bluetooth.BluetoothHeadset.SendVendorSpecificResultCode Method
Sends a vendor-specific unsolicited result code to the headset.

Syntax

[Android.Runtime.Register("sendVendorSpecificResultCode", "(Landroid/bluetooth/BluetoothDevice;Ljava/lang/String;Ljava/lang/String;)Z", "")]
public bool SendVendorSpecificResultCode (BluetoothDevice device, string command, string arg)

Parameters

device
Bluetooth headset.
command
A vendor-specific command.
arg
The argument that will be attached to the command.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif command is null.

Remarks

Sends a vendor-specific unsolicited result code to the headset.

The actual string to be sent is command + ": " + arg. For example, if command is BluetoothHeadset.VendorResultCodeCommandAndroid and arg is "0", the string "+ANDROID: 0" will be sent.

Currently only BluetoothHeadset.VendorResultCodeCommandAndroid is allowed as command.

Requires NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BLUETOOTH permission.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11