Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
AudioControlData

AudioControlData Class Reference

Constructors

Instance Methods

Constructors

new AudioControlData(parameters)

Initalizes an instance of AudioControlData.

Instance Methods

audioControlData.getEqualizerSettings() ⇒ Array.<EqualizerSettings>

Get the EqualizerSettings

Kind: Instance method of AudioControlData
Returns: Array.<EqualizerSettings> - the KEY_EQUALIZER_SETTINGS value

audioControlData.getKeepContext() ⇒ Boolean

Get the KeepContext

Kind: Instance method of AudioControlData
Returns: Boolean - the KEY_KEEP_CONTEXT value

audioControlData.getSource() ⇒ PrimaryAudioSource

Get the Source

Kind: Instance method of AudioControlData
Returns: PrimaryAudioSource - the KEY_SOURCE value

audioControlData.getVolume() ⇒ Number

Get the Volume

Kind: Instance method of AudioControlData
Returns: Number - the KEY_VOLUME value

audioControlData.setEqualizerSettings(settings) ⇒ AudioControlData

Set the EqualizerSettings

Kind: Instance method of AudioControlData
Returns: AudioControlData - The class instance for method chaining.

ParamTypeDescription
settings Array.<EqualizerSettings> Defines the list of supported channels (band) and their current/desired - The desired EqualizerSettings. settings on HMI

audioControlData.setKeepContext(context) ⇒ AudioControlData

Set the KeepContext

Kind: Instance method of AudioControlData
Returns: AudioControlData - The class instance for method chaining.

ParamTypeDescription
context Boolean This parameter shall not be present in any getter responses or notifications. This - The desired KeepContext. 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.

audioControlData.setSource(source) ⇒ AudioControlData

Set the Source

Kind: Instance method of AudioControlData
Returns: AudioControlData - The class instance for method chaining.

ParamTypeDescription
source PrimaryAudioSource In a getter response or a notification, it is the current primary audio - The desired Source. 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.

audioControlData.setVolume(volume) ⇒ AudioControlData

Set the Volume

Kind: Instance method of AudioControlData
Returns: AudioControlData - The class instance for method chaining.

ParamTypeDescription
volume Number Reflects the volume of audio, from 0%-100%. - The desired Volume.
View on GitHub.com
Previous Section Next Section