BluetoothHidDevice.RegisterApp Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
BluetoothHidDeviceAppSdpSettings objet de l’enregistrement HID Device SDP. L’enregistrement HID Device SDP est requis.
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.
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
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.