BluetoothHidDevice.ReplyReport(BluetoothDevice, SByte, SByte, Byte[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将报告作为答复发送到远程主机,以答复来自 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
参数
- device
- BluetoothDevice
- type
- SByte
报告类型,如请求所示。
- id
- SByte
报告 ID,如请求中所示。
- data
- Byte[]
报表数据,不包括报表 ID。
返回
如果成功发送命令,则为 true;否则为 false。
- 特性
注解
将报告作为答复发送到远程主机,以答复来自 Callback#onGetReport(BluetoothDevice, byte, byte, int)GET_REPORT请求。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。