The audio control data information.
@since RPC 5.0
Constructs a newly allocated SDLAudioControlData object with given parameters
- (nonnull instancetype)initWithSource:(nullable SDLPrimaryAudioSource)source
keepContext:(nullable NSNumber<SDLBool> *)keepContext
volume:(nullable NSNumber<SDLInt> *)volume
equalizerSettings:
(nullable NSArray<SDLEqualizerSettings *> *)
equalizerSettings;
init(source: SDLPrimaryAudioSource?, keepContext: (NSNumber & SDLBool)?, volume: (NSNumber & SDLInt)?, equalizerSettings: [SDLEqualizerSettings]?)
current primary audio source of the system.
Whether or not application’s context is changed.
Reflects the volume of audio.
list of supported Equalizer channels.
An instance of the SDLAudioControlData class.
@abstract 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.
Optional, SDLPrimaryAudioSource
@property (nonatomic, strong, nullable) SDLPrimaryAudioSource source;
var source: SDLPrimaryAudioSource? { get set }
@abstract 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 true, the system not only changes the audio source but also brings the default infotainment system UI associated with the audio source to foreground and set the application to background. If it is false, the system changes the audio source, but keeps the current application’s context.
Optional, Boolean
@property (nonatomic, strong, nullable) NSNumber<SDLBool> *keepContext;
var keepContext: (NSNumber & SDLBool)? { get set }
@abstract Reflects the volume of audio, from 0%-100%.
Required, Integer 1 - 100
@property (nonatomic, strong, nullable) NSNumber<SDLInt> *volume;
var volume: (NSNumber & SDLInt)? { get set }
@abstract Defines the list of supported channels (band) and their current/desired settings on HMI
Required, Array of SDLEqualizerSettings with minSize:1 maxSize:100
@property (nonatomic, strong, nullable) NSArray<SDLEqualizerSettings *> *equalizerSettings;
var equalizerSettings: [SDLEqualizerSettings]? { get set }