Added in API level 14
Deprecated in API level 29

BluetoothHealthAppConfiguration


class BluetoothHealthAppConfiguration : Parcelable
kotlin.Any
   ↳ android.bluetooth.BluetoothHealthAppConfiguration

The Bluetooth Health Application Configuration that is used in conjunction with the BluetoothHealth class. This class represents an application configuration that the Bluetooth Health third party application will register to communicate with the remote Bluetooth health device.

Summary

Inherited constants
Public methods
Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

Int

Return the data type associated with this application configuration.

String!

Return the name of the application configuration.

Int

Return the role associated with this application configuration.

Unit
writeToParcel(out: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<BluetoothHealthAppConfiguration!>

Public methods

describeContents

Added in API level 14
fun describeContents(): Int

Deprecated: Deprecated in Java.

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

getDataType

Added in API level 14
fun getDataType(): Int

Deprecated: Health Device Profile (HDP) and MCAP protocol are no longer used. New apps should use Bluetooth Low Energy based solutions such as BluetoothGatt, BluetoothAdapter.listenUsingL2capChannel(), or BluetoothDevice.createL2capChannel(int)

Return the data type associated with this application configuration.

Return
Int dataType

getName

Added in API level 14
fun getName(): String!

Deprecated: Health Device Profile (HDP) and MCAP protocol are no longer used. New apps should use Bluetooth Low Energy based solutions such as BluetoothGatt, BluetoothAdapter.listenUsingL2capChannel(), or BluetoothDevice.createL2capChannel(int)

Return the name of the application configuration.

Return
String! String name

getRole

Added in API level 14
fun getRole(): Int

Deprecated: Health Device Profile (HDP) and MCAP protocol are no longer used. New apps should use Bluetooth Low Energy based solutions such as BluetoothGatt, BluetoothAdapter.listenUsingL2capChannel(), or BluetoothDevice.createL2capChannel(int)

Return the role associated with this application configuration.

Return
Int One of BluetoothHealth.SOURCE_ROLE or BluetoothHealth.SINK_ROLE

writeToParcel

Added in API level 14
fun writeToParcel(
    out: Parcel,
    flags: Int
): Unit

Deprecated: Deprecated in Java.

Flatten this object in to a Parcel.

Parameters
dest The Parcel in which the object should be written.
This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:

Properties

CREATOR

Added in API level 14
static val CREATOR: Parcelable.Creator<BluetoothHealthAppConfiguration!>

Deprecated: Health Device Profile (HDP) and MCAP protocol are no longer used. New apps should use Bluetooth Low Energy based solutions such as BluetoothGatt, BluetoothAdapter.listenUsingL2capChannel(), or BluetoothDevice.createL2capChannel(int)