BluetoothHidDevice.SendReport(BluetoothDevice, Int32, Byte[]) 方法

定义

使用中断通道将报告发送到远程主机。

[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

参数

id
Int32

报告 ID,如描述符中定义。 如果描述符中未定义报表 ID,则为 0。

data
Byte[]

报表数据,不包括报表 ID。

返回

如果成功发送命令,则为 true;否则为 false。

属性

注解

适用于 . 的 android.bluetooth.BluetoothHidDevice.sendReport(android.bluetooth.BluetoothDevice, int, byte[])Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于