BluetoothHidDevice.SendReport(BluetoothDevice, Int32, Byte[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過中斷通道向遠端主機發送報告。
[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
參數
- device
- BluetoothDevice
- id
- Int32
報告識別碼,依描述符定義。 如果報告 ID 未在描述符中定義,則可為 0。
- data
- Byte[]
報告資料,不包含報告ID。
傳回
如果指令成功傳送,則為真;否則為假。
- 屬性
備註
透過中斷通道向遠端主機發送報告。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。