public final class BluetoothAvrcpPlayerSettings extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<BluetoothAvrcpPlayerSettings> |
CREATOR |
static int |
SETTING_EQUALIZER
Equalizer setting.
|
static int |
SETTING_REPEAT
Repeat setting.
|
static int |
SETTING_SCAN
Scan mode setting.
|
static int |
SETTING_SHUFFLE
Shuffle setting.
|
static int |
STATE_ALL_TRACK
All track repeat/shuffle.
|
static int |
STATE_GROUP
Group repeat/shuffle.
|
static int |
STATE_INVALID
Invalid state.
|
static int |
STATE_OFF
OFF state.
|
static int |
STATE_ON
ON state.
|
static int |
STATE_SINGLE_TRACK
Single track repeat.
|
static String |
TAG |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
BluetoothAvrcpPlayerSettings(int settings)
Create a new player settings object.
|
Modifier and Type | Method and Description |
---|---|
void |
addSettingValue(int setting,
int value)
Add a setting value.
|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
int |
getSettings()
Get the supported settings.
|
int |
getSettingValue(int setting)
Get a setting value.
|
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final String TAG
public static final int SETTING_EQUALIZER
public static final int SETTING_REPEAT
public static final int SETTING_SHUFFLE
public static final int SETTING_SCAN
public static final int STATE_INVALID
public static final int STATE_OFF
public static final int STATE_ON
SETTING_EQUALIZER
.public static final int STATE_SINGLE_TRACK
SETTING_REPEAT
.public static final int STATE_ALL_TRACK
SETTING_REPEAT
, SETTING_SHUFFLE
and SETTING_SCAN
.public static final int STATE_GROUP
SETTING_REPEAT
, SETTING_SHUFFLE
and SETTING_SCAN
.public static final Parcelable.Creator<BluetoothAvrcpPlayerSettings> CREATOR
public BluetoothAvrcpPlayerSettings(int settings)
settings
- a ORed value of SETTINGS_* defined above.public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel out, int flags)
Parcelable
writeToParcel
in interface Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public int getSettings()
public void addSettingValue(int setting, int value)
getSettings()
.setting
- setting config.value
- value for the setting.IllegalStateException
- if the setting is not supported.public int getSettingValue(int setting)
getSettings()
.setting
- setting config.IllegalStateException
- if the setting is not supported.