BluetoothHealthAppConfiguration
classBluetoothHealthAppConfiguration: 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! |
getName()Return the name of the application configuration. |
| Int |
getRole()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
fundescribeContents(): 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
fungetDataType(): 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
fungetName(): 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
fungetRole(): 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
funwriteToParcel(
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
static valCREATOR: 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)