语言

BluetoothHidDevice.Callback.OnSetProtocol(BluetoothDevice, SByte) 方法

定义

从远程主机接收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

参数

protocol
SByte

协议模式。

特性

注解

从远程主机接收SET_PROTOCOL时调用的回调。 应用程序应使用此信息仅发送对给定协议模式有效的报告。 默认情况下,应假定为 >。

Java文档android.bluetooth.BluetoothHidDevice.Callback.onSetProtocol(android.bluetooth.BluetoothDevice, byte)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于