BluetoothHidDevice.RegisterApp Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Registriert die Anwendung, die für HID-Geräte verwendet werden soll.
[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
Parameter
BluetoothHidDeviceAppSdpSettings -Objekt des HID-Geräte-SDP-Eintrags. Der HID-Geräte-SDP-Eintrag ist erforderlich.
BluetoothHidDeviceAppQosSettings -Objekt der Eingehenden QoS-Einstellungen. Die Einstellungen für eingehende QoS sind nicht erforderlich. Verwenden Sie "null" oder "Standard"BluetoothHidDeviceAppQosSettings.Builder" für Standardwerte.
BluetoothHidDeviceAppQosSettings -Objekt der ausgehenden QoS-Einstellungen. Die Einstellungen für ausgehende QoS sind nicht erforderlich. Verwenden Sie "null" oder "Standard"BluetoothHidDeviceAppQosSettings.Builder" für Standardwerte.
- executor
- IExecutor
Executor -Objekt, auf dem der Rückruf ausgeführt wird. Das Executor-Objekt ist erforderlich.
- callback
- BluetoothHidDevice.Callback
Callback Objekt, an das Rückrufnachrichten gesendet werden. Das Callback-Objekt ist erforderlich.
Gibt zurück
true, wenn der Befehl erfolgreich gesendet wird; andernfalls "false".
- Attribute
Hinweise
Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.