BluetoothHidDevice.Callback.OnSetReport 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當遠端主機收到SET_REPORT時,回撥會被呼叫。
[Android.Runtime.Register("onSetReport", "(Landroid/bluetooth/BluetoothDevice;BB[B)V", "GetOnSetReport_Landroid_bluetooth_BluetoothDevice_BBarrayBHandler", ApiSince=28)]
public virtual void OnSetReport(Android.Bluetooth.BluetoothDevice? device, sbyte type, sbyte id, byte[]? data);
[<Android.Runtime.Register("onSetReport", "(Landroid/bluetooth/BluetoothDevice;BB[B)V", "GetOnSetReport_Landroid_bluetooth_BluetoothDevice_BBarrayBHandler", ApiSince=28)>]
abstract member OnSetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * byte[] -> unit
override this.OnSetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * byte[] -> unit
參數
- device
- BluetoothDevice
- type
- SByte
報告類型。
- id
- SByte
報告標識碼。
- data
- Byte[]
報告資料。
- 屬性
備註
當遠端主機收到SET_REPORT時,回撥會被呼叫。 若接收資料無效,應用程式應以 回應。BluetoothHidDevice#reportError(BluetoothDevice, byte)
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。