BluetoothHidDevice.SendReport(BluetoothDevice, Int32, Byte[]) Method

Definition

Sends report to remote host using interrupt channel.

[Android.Runtime.Register("sendReport", "(Landroid/bluetooth/BluetoothDevice;I[B)Z", "", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool SendReport (Android.Bluetooth.BluetoothDevice? device, int id, byte[]? data);
[<Android.Runtime.Register("sendReport", "(Landroid/bluetooth/BluetoothDevice;I[B)Z", "", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SendReport : Android.Bluetooth.BluetoothDevice * int * byte[] -> bool

Parameters

id
Int32

Report Id, as defined in descriptor. Can be 0 in case Report Id are not defined in descriptor.

data
Byte[]

Report data, not including Report Id.

Returns

true if the command is successfully sent; otherwise false.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothHidDevice.sendReport(android.bluetooth.BluetoothDevice, int, byte[]).

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.

Applies to