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 | |
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) |
Properties | |
---|---|
static Parcelable.Creator<BluetoothHealthAppConfiguration!> |
Public methods
describeContents
fundescribeContents(): Int
Deprecated: Deprecated in Java.
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
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
, android.bluetooth.BluetoothAdapter#listenUsingL2capChannel()
, or android.bluetooth.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
, android.bluetooth.BluetoothAdapter#listenUsingL2capChannel()
, or android.bluetooth.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
, android.bluetooth.BluetoothAdapter#listenUsingL2capChannel()
, or android.bluetooth.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.
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 android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
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
, android.bluetooth.BluetoothAdapter#listenUsingL2capChannel()
, or android.bluetooth.BluetoothDevice#createL2capChannel(int)