语言

BluetoothHidDevice.Callback.OnSetReport 方法

定义

从远程主机接收SET_REPORT时调用的回调。

[Android.Runtime.Register("onSetReport", "(Landroid/bluetooth/BluetoothDevice;BB[B)V", "GetOnSetReport_Landroid_bluetooth_BluetoothDevice_BBarrayBHandler", ApiSince=28)]
public virtual void OnSetReport(Android.Bluetooth.BluetoothDevice? device, sbyte type, sbyte id, byte[]? data);
[<Android.Runtime.Register("onSetReport", "(Landroid/bluetooth/BluetoothDevice;BB[B)V", "GetOnSetReport_Landroid_bluetooth_BluetoothDevice_BBarrayBHandler", ApiSince=28)>]
abstract member OnSetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * byte[] -> unit
override this.OnSetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * byte[] -> unit

参数

type
SByte

报表类型。

id
SByte

报表 ID。

data
Byte[]

报告数据。

特性

注解

从远程主机接收SET_REPORT时调用的回调。 如果收到的数据无效,应用程序应响应 BluetoothHidDevice#reportError(BluetoothDevice, byte)。

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

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

适用于