語言

BluetoothHidDevice.SendReport(BluetoothDevice, Int32, Byte[]) 方法

定義

透過中斷通道向遠端主機發送報告。

[Android.Runtime.Register("sendReport", "(Landroid/bluetooth/BluetoothDevice;I[B)Z", "", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool SendReport(Android.Bluetooth.BluetoothDevice? device, int id, byte[]? data);
[<Android.Runtime.Register("sendReport", "(Landroid/bluetooth/BluetoothDevice;I[B)Z", "", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SendReport : Android.Bluetooth.BluetoothDevice * int * byte[] -> bool

參數

id
Int32

報告識別碼,依描述符定義。 如果報告 ID 未在描述符中定義,則可為 0。

data
Byte[]

報告資料,不包含報告ID。

傳回

如果指令成功傳送,則為真;否則為假。

屬性

備註

透過中斷通道向遠端主機發送報告。

Java 文件 android.bluetooth.BluetoothHidDevice.sendReport(android.bluetooth.BluetoothDevice, int, byte[])。

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

適用於