語言

BluetoothHidDevice.RegisterApp 方法

定義

暫存器為 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

參數

sdp
BluetoothHidDeviceAppSdpSettings

BluetoothHidDeviceAppSdpSettings HID 裝置 SDP 記錄的物件。 必須有 HID 裝置的 SDP 紀錄。

inQos
BluetoothHidDeviceAppQosSettings

BluetoothHidDeviceAppQosSettings 進入 QoS 設定的物件。 輸入 QoS 設定並非必需。 預設值請使用空或預設的 BluetoothHidDeviceAppQosSettings.Builder。

outQos
BluetoothHidDeviceAppQosSettings

BluetoothHidDeviceAppQosSettings 出站QoS設定的目標。 外部 QoS 設定並非必需。 預設值請使用空或預設的 BluetoothHidDeviceAppQosSettings.Builder。

executor
IExecutor

Executor 將執行回調的物件。 執行者物件是必須的。

callback
BluetoothHidDevice.Callback

Callback 物件將被傳送回撥訊息。 回調物件是必須的。

傳回

如果指令成功傳送,則為真;否則為假。

屬性

備註

Java 文件 android.bluetooth.BluetoothHidDevice.registerApp(android.bluetooth.BluetoothHidDeviceAppSdpSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, java.util.concurrent.Executor, android.bluetooth.Callback)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於