語言

BluetoothHidDevice.ReplyReport(BluetoothDevice, SByte, SByte, Byte[]) 方法

定義

將報告傳送給遠端主機,作為GET_REPORT請求的 Callback#onGetReport(BluetoothDevice, byte, byte, int)回覆。

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

參數

type
SByte

報告類型,指請求。

id
SByte

報告身份,意指請求。

data
Byte[]

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

傳回

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

屬性

備註

將報告傳送給遠端主機,作為GET_REPORT請求的 Callback#onGetReport(BluetoothDevice, byte, byte, int)回覆。

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

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

適用於