BluetoothHidDevice.RegisterApp Método

Definición

Registra la aplicación que se va a usar para el dispositivo 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

Parámetros

sdp
BluetoothHidDeviceAppSdpSettings

BluetoothHidDeviceAppSdpSettings objeto del registro SDP del dispositivo HID. Se requiere el registro SDP del dispositivo HID.

inQos
BluetoothHidDeviceAppQosSettings

BluetoothHidDeviceAppQosSettings objeto de Configuración de QoS entrante. No se requiere la configuración de QoS entrante. Use null o default BluetoothHidDeviceAppQosSettings.Builder para los valores predeterminados.

outQos
BluetoothHidDeviceAppQosSettings

BluetoothHidDeviceAppQosSettings objeto de configuración de QoS saliente. La configuración de QoS saliente no es necesaria. Use null o default BluetoothHidDeviceAppQosSettings.Builder para los valores predeterminados.

executor
IExecutor

Executor objeto en el que se ejecutará la devolución de llamada. Se requiere el objeto Executor.

callback
BluetoothHidDevice.Callback

Callback objeto al que se enviarán los mensajes de devolución de llamada. Se requiere el objeto Callback.

Devoluciones

true si el comando se envía correctamente; de lo contrario, false.

Atributos

Comentarios

Java documentación para android.bluetooth.BluetoothHidDevice.registerApp(android.bluetooth.BluetoothHidDeviceAppSdpSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, java.util.concurrent.Executor, android.bluetooth.Callback).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a