| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_EQUALIZER_SETTINGS |
static String |
KEY_KEEP_CONTEXT |
static String |
KEY_SOURCE |
static String |
KEY_VOLUME |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
AudioControlData()
Constructs a newly allocated AudioControlData object
|
AudioControlData(Hashtable<String,Object> hash)
Constructs a newly allocated AudioControlData object indicated by the Hashtable parameter
|
| Modifier and Type | Method and Description |
|---|---|
List<EqualizerSettings> |
getEqualizerSettings()
Gets the equalizerSettings portion of the AudioControlData class
|
Boolean |
getKeepContext()
Gets the keepContext portion of the AudioControlData class
|
PrimaryAudioSource |
getSource()
Gets the source portion of the AudioControlData class
|
Integer |
getVolume()
Gets the volume portion of the AudioControlData class
|
AudioControlData |
setEqualizerSettings(List<EqualizerSettings> equalizerSettings)
Sets the equalizerSettings portion of the AudioControlData class
|
AudioControlData |
setKeepContext(Boolean keepContext)
Sets the keepContext portion of the AudioControlData class
|
AudioControlData |
setSource(PrimaryAudioSource source)
Sets the source portion of the AudioControlData class
|
AudioControlData |
setVolume(Integer volume)
Sets the volume portion of the AudioControlData class
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_SOURCE
public static final String KEY_KEEP_CONTEXT
public static final String KEY_VOLUME
public static final String KEY_EQUALIZER_SETTINGS
public AudioControlData()
public AudioControlData setSource(PrimaryAudioSource source)
source - In a getter response or a notification, it is the current primary audio source of the system.
In a setter request, it is the target audio source that the system shall switch to.
If the value is MOBILE_APP, the system shall switch to the mobile media app that issues the setter RPC.public PrimaryAudioSource getSource()
public AudioControlData setKeepContext(Boolean keepContext)
keepContext - This parameter shall not be present in any getter responses or notifications.
This parameter is optional in a setter request. The default value is false if it is not included.
If it is false, the system not only changes the audio source but also brings the default application or
system UI associated with the audio source to foreground.
If it is true, the system only changes the audio source, but keeps the current application in foreground.public Boolean getKeepContext()
public AudioControlData setVolume(Integer volume)
volume - Reflects the volume of audio, from 0%-100%.public Integer getVolume()
public List<EqualizerSettings> getEqualizerSettings()
public AudioControlData setEqualizerSettings(List<EqualizerSettings> equalizerSettings)
equalizerSettings - Defines the list of supported channels (band) and their current/desired settings on HMI.