BluetoothHidDevice.RegisterApp 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注册要用于 HID 设备的应用程序。
[Android.Runtime.Register("registerApp", "(Landroid/bluetooth/BluetoothHidDeviceAppSdpSettings;Landroid/bluetooth/BluetoothHidDeviceAppQosSettings;Landroid/bluetooth/BluetoothHidDeviceAppQosSettings;Ljava/util/concurrent/Executor;Landroid/bluetooth/BluetoothHidDevice$Callback;)Z", "", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool RegisterApp(Android.Bluetooth.BluetoothHidDeviceAppSdpSettings? sdp, Android.Bluetooth.BluetoothHidDeviceAppQosSettings? inQos, Android.Bluetooth.BluetoothHidDeviceAppQosSettings? outQos, Java.Util.Concurrent.IExecutor? executor, Android.Bluetooth.BluetoothHidDevice.Callback? callback);
[<Android.Runtime.Register("registerApp", "(Landroid/bluetooth/BluetoothHidDeviceAppSdpSettings;Landroid/bluetooth/BluetoothHidDeviceAppQosSettings;Landroid/bluetooth/BluetoothHidDeviceAppQosSettings;Ljava/util/concurrent/Executor;Landroid/bluetooth/BluetoothHidDevice$Callback;)Z", "", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.RegisterApp : Android.Bluetooth.BluetoothHidDeviceAppSdpSettings * Android.Bluetooth.BluetoothHidDeviceAppQosSettings * Android.Bluetooth.BluetoothHidDeviceAppQosSettings * Java.Util.Concurrent.IExecutor * Android.Bluetooth.BluetoothHidDevice.Callback -> bool
参数
BluetoothHidDeviceAppSdpSettings HID 设备 SDP 记录的对象。 需要 HID 设备 SDP 记录。
BluetoothHidDeviceAppQosSettings 传入 QoS 设置的对象。 不需要传入 QoS 设置。 将 null 或默认 BluetoothHidDeviceAppQosSettings.Builder 用于默认值。
BluetoothHidDeviceAppQosSettings 传出 QoS 设置的对象。 不需要传出 QoS 设置。 将 null 或默认 BluetoothHidDeviceAppQosSettings.Builder 用于默认值。
- executor
- IExecutor
Executor 将对其执行回调的对象。 需要执行程序对象。
- callback
- BluetoothHidDevice.Callback
Callback 将向其发送回调消息的对象。 需要 Callback 对象。
返回
如果成功发送命令,则为 true;否则为 false。
- 特性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。