Langue

BluetoothHidDevice.RegisterApp Méthode

Définition

Inscrit l’application à utiliser pour l’appareil 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

Paramètres

sdp
BluetoothHidDeviceAppSdpSettings

BluetoothHidDeviceAppSdpSettings objet de l’enregistrement HID Device SDP. L’enregistrement HID Device SDP est requis.

inQos
BluetoothHidDeviceAppQosSettings

BluetoothHidDeviceAppQosSettings objet des paramètres qoS entrants. Les paramètres qoS entrants ne sont pas obligatoires. Utilisez null ou BluetoothHidDeviceAppQosSettings.Builder par défaut pour les valeurs par défaut.

outQos
BluetoothHidDeviceAppQosSettings

BluetoothHidDeviceAppQosSettings objet des paramètres qoS sortants. Les paramètres qoS sortants ne sont pas obligatoires. Utilisez null ou BluetoothHidDeviceAppQosSettings.Builder par défaut pour les valeurs par défaut.

executor
IExecutor

Executor objet sur lequel le rappel sera exécuté. L’objet Executor est requis.

callback
BluetoothHidDevice.Callback

Callback objet auquel les messages de rappel seront envoyés. L’objet Callback est requis.

Retours

true si la commande est correctement envoyée ; sinon false.

Attributs

Remarques

Java documentation pour android.bluetooth.BluetoothHidDevice.registerApp(android.bluetooth.BluetoothHidDeviceAppSdpSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, java.util.concurrent.Executor, android.bluetooth.Callback).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à