BluetoothHidDevice.Callback.OnGetReport 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當遠端主機收到GET_REPORT時,回撥會被呼叫。
[Android.Runtime.Register("onGetReport", "(Landroid/bluetooth/BluetoothDevice;BBI)V", "GetOnGetReport_Landroid_bluetooth_BluetoothDevice_BBIHandler", ApiSince=28)]
public virtual void OnGetReport(Android.Bluetooth.BluetoothDevice? device, sbyte type, sbyte id, int bufferSize);
[<Android.Runtime.Register("onGetReport", "(Landroid/bluetooth/BluetoothDevice;BBI)V", "GetOnGetReport_Landroid_bluetooth_BluetoothDevice_BBIHandler", ApiSince=28)>]
abstract member OnGetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * int -> unit
override this.OnGetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * int -> unit
參數
- device
- BluetoothDevice
- type
- SByte
請求報告類型。
- id
- SByte
請求的報告 ID,如果描述符中沒有定義 Report ID,則可以是 0。
- bufferSize
- Int32
請求的緩衝區大小,應用程式應至少回應給定的位元組數。
- 屬性
備註
當遠端主機收到GET_REPORT時,回撥會被呼叫。 應由應用程式 BluetoothHidDevice#replyReport(BluetoothDevice, byte, byte, byte[])回覆。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。