# Print output for @column tags ?>
public
final
class
BluetoothHealthAppConfiguration
extends Object
implements
Parcelable
java.lang.Object | |
↳ | android.bluetooth.BluetoothHealthAppConfiguration |
This class is 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)
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.
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<BluetoothHealthAppConfiguration> |
CREATOR
This field is deprecated.
Health Device Profile (HDP) and MCAP protocol are no longer used. New
apps should use Bluetooth Low Energy based solutions such as |
Public methods | |
---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
int
|
getDataType()
This method is deprecated.
Health Device Profile (HDP) and MCAP protocol are no longer used. New
apps should use Bluetooth Low Energy based solutions such as |
String
|
getName()
This method is deprecated.
Health Device Profile (HDP) and MCAP protocol are no longer used. New
apps should use Bluetooth Low Energy based solutions such as |
int
|
getRole()
This method is deprecated.
Health Device Profile (HDP) and MCAP protocol are no longer used. New
apps should use Bluetooth Low Energy based solutions such as |
void
|
writeToParcel(Parcel out, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
---|---|
public static final Creator<BluetoothHealthAppConfiguration> CREATOR
This field is 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)
public int describeContents ()
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.
Returns | |
---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
public int getDataType ()
This method is 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.
Returns | |
---|---|
int |
dataType |
public String getName ()
This method is 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.
Returns | |
---|---|
String |
String name |
public int getRole ()
This method is 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.
Returns | |
---|---|
int |
One of BluetoothHealth#SOURCE_ROLE or BluetoothHealth#SINK_ROLE |
public void writeToParcel (Parcel out, int flags)
Flatten this object in to a Parcel.
Parameters | |
---|---|
out |
Parcel : The Parcel in which the object should be written. |
flags |
int : Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE .
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |