Freigeben über


BluetoothHealth.RegisterSinkAppConfiguration Method

Definition

Register an application configuration that acts as a Health SINK.

[Android.Runtime.Register("registerSinkAppConfiguration", "(Ljava/lang/String;ILandroid/bluetooth/BluetoothHealthCallback;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool RegisterSinkAppConfiguration (string? name, int dataType, Android.Bluetooth.BluetoothHealthCallback? callback);
[<Android.Runtime.Register("registerSinkAppConfiguration", "(Ljava/lang/String;ILandroid/bluetooth/BluetoothHealthCallback;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.RegisterSinkAppConfiguration : string * int * Android.Bluetooth.BluetoothHealthCallback -> bool

Parameters

name
String

The friendly name associated with the application or configuration.

dataType
Int32

The dataType of the Source role of Health Profile to which the sink wants to connect to.

callback
BluetoothHealthCallback

A callback to indicate success or failure of the registration and all operations done on this application configuration.

Returns

If true, callback will be called.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothHealth.registerSinkAppConfiguration(java.lang.String, int, android.bluetooth.BluetoothHealthCallback).

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.

Applies to