BluetoothHidDevice.RegisterApp Methode

Definition

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

sdp
BluetoothHidDeviceAppSdpSettings

BluetoothHidDeviceAppSdpSettings -Objekt des HID-Geräte-SDP-Eintrags. Der HID-Geräte-SDP-Eintrag ist erforderlich.

inQos
BluetoothHidDeviceAppQosSettings

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.

outQos
BluetoothHidDeviceAppQosSettings

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

Java Dokumentation für android.bluetooth.BluetoothHidDevice.registerApp(android.bluetooth.BluetoothHidDeviceAppSdpSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, java.util.concurrent.Executor, android.bluetooth.Callback).

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.

Gilt für: