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时调用的回调。 应用程序应使用此信息仅发送对给定协议模式有效的报告。 默认情况下,应假定为
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。