语言

BluetoothHidDevice.Callback.OnInterruptData 方法

定义

通过中断通道接收报表数据时调用的回调。

[Android.Runtime.Register("onInterruptData", "(Landroid/bluetooth/BluetoothDevice;B[B)V", "GetOnInterruptData_Landroid_bluetooth_BluetoothDevice_BarrayBHandler", ApiSince=28)]
public virtual void OnInterruptData(Android.Bluetooth.BluetoothDevice? device, sbyte reportId, byte[]? data);
[<Android.Runtime.Register("onInterruptData", "(Landroid/bluetooth/BluetoothDevice;B[B)V", "GetOnInterruptData_Landroid_bluetooth_BluetoothDevice_BarrayBHandler", ApiSince=28)>]
abstract member OnInterruptData : Android.Bluetooth.BluetoothDevice * sbyte * byte[] -> unit
override this.OnInterruptData : Android.Bluetooth.BluetoothDevice * sbyte * byte[] -> unit

参数

reportId
SByte

报表 ID。

data
Byte[]

报告数据。

特性

注解

通过中断通道接收报表数据时调用的回调。 报表类型假定为 BluetoothHidDevice#REPORT_TYPE_OUTPUT.

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

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

适用于