语言

BluetoothHidDevice.ReplyReport(BluetoothDevice, SByte, SByte, Byte[]) 方法

定义

将报告作为答复发送到远程主机,以答复来自 Callback#onGetReport(BluetoothDevice, byte, byte, int)GET_REPORT请求。

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

参数

type
SByte

报告类型,如请求所示。

id
SByte

报告 ID,如请求中所示。

data
Byte[]

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

返回

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

特性

注解

将报告作为答复发送到远程主机,以答复来自 Callback#onGetReport(BluetoothDevice, byte, byte, int)GET_REPORT请求。

Java文档android.bluetooth.BluetoothHidDevice.replyReport(android.bluetooth.BluetoothDevice, byte, byte, byte[])。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于