BluetoothHidDevice.RegisterApp Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers application to be used for HID device.
[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
Parameters
BluetoothHidDeviceAppSdpSettings object of HID Device SDP record. The HID
Device SDP record is required.
BluetoothHidDeviceAppQosSettings object of Incoming QoS Settings. The
Incoming QoS Settings is not required. Use null or default
BluetoothHidDeviceAppQosSettings.Builder for default values.
BluetoothHidDeviceAppQosSettings object of Outgoing QoS Settings. The
Outgoing QoS Settings is not required. Use null or default
BluetoothHidDeviceAppQosSettings.Builder for default values.
- executor
- IExecutor
Executor object on which callback will be executed. The Executor
object is required.
- callback
- BluetoothHidDevice.Callback
Callback object to which callback messages will be sent. The Callback
object is required.
Returns
true if the command is successfully sent; otherwise false.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.