BluetoothHidDevice.Callback.OnSetProtocol(BluetoothDevice, SByte) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當遠端主機收到SET_PROTOCOL時會呼叫回撥。
[Android.Runtime.Register("onSetProtocol", "(Landroid/bluetooth/BluetoothDevice;B)V", "GetOnSetProtocol_Landroid_bluetooth_BluetoothDevice_BHandler", ApiSince=28)]
public virtual void OnSetProtocol(Android.Bluetooth.BluetoothDevice? device, sbyte protocol);
[<Android.Runtime.Register("onSetProtocol", "(Landroid/bluetooth/BluetoothDevice;B)V", "GetOnSetProtocol_Landroid_bluetooth_BluetoothDevice_BHandler", ApiSince=28)>]
abstract member OnSetProtocol : Android.Bluetooth.BluetoothDevice * sbyte -> unit
override this.OnSetProtocol : Android.Bluetooth.BluetoothDevice * sbyte -> unit
參數
- device
- BluetoothDevice
- protocol
- SByte
協議模式。
- 屬性
備註
當遠端主機收到SET_PROTOCOL時會呼叫回撥。 應用程式應利用這些資訊僅發送適用於特定協定模式的報告。 預設情況下, BluetoothHidDevice#PROTOCOL_REPORT_MODE 應視為
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。