BluetoothHidDevice.ReplyReport(BluetoothDevice, SByte, SByte, Byte[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將報告傳送給遠端主機,作為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
參數
- device
- BluetoothDevice
- type
- SByte
報告類型,指請求。
- id
- SByte
報告身份,意指請求。
- data
- Byte[]
報告資料,不包含報告ID。
傳回
如果指令成功傳送,則為真;否則為假。
- 屬性
備註
將報告傳送給遠端主機,作為GET_REPORT請求的 Callback#onGetReport(BluetoothDevice, byte, byte, int)回覆。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。