語言

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

報告標識碼。

data
Byte[]

報告資料。

屬性

備註

當中斷通道接收報告資料時,回調呼叫。 報告類型假設為 BluetoothHidDevice#REPORT_TYPE_OUTPUT。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於