语言

BluetoothHidDevice.Callback.OnGetReport 方法

定义

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

[Android.Runtime.Register("onGetReport", "(Landroid/bluetooth/BluetoothDevice;BBI)V", "GetOnGetReport_Landroid_bluetooth_BluetoothDevice_BBIHandler", ApiSince=28)]
public virtual void OnGetReport(Android.Bluetooth.BluetoothDevice? device, sbyte type, sbyte id, int bufferSize);
[<Android.Runtime.Register("onGetReport", "(Landroid/bluetooth/BluetoothDevice;BBI)V", "GetOnGetReport_Landroid_bluetooth_BluetoothDevice_BBIHandler", ApiSince=28)>]
abstract member OnGetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * int -> unit
override this.OnGetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * int -> unit

参数

type
SByte

请求的报表类型。

id
SByte

如果描述符中未定义任何报表 ID,则请求的报表 ID 可以为 0。

bufferSize
Int32

请求的缓冲区大小,应用程序应至少响应给定的字节数。

特性

注解

从远程主机接收GET_REPORT时调用的回调。 应使用 BluetoothHidDevice#replyReport(BluetoothDevice, byte, byte, byte[])应用程序回复 。

Java文档android.bluetooth.BluetoothHidDevice.Callback.onGetReport(android.bluetooth.BluetoothDevice, byte, byte, int)。

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

适用于