Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
iOS Documentation
SDLAudioControlCapabilities

SDLAudioControlCapabilities Class Reference

Section Contents

Overview

Describes a head unit’s audio control capabilities.

@since RPC 5.0

-initWithModuleName:moduleInfo:

Constructs a newly allocated SDLAudioControlCapabilities object with audio control module name (max 100 chars)

Objective-C

- (nonnull instancetype)initWithModuleName:(nonnull NSString *)name
                                moduleInfo:(nullable SDLModuleInfo *)moduleInfo;

Swift

init(moduleName name: String, moduleInfo: SDLModuleInfo?)

Parameters

name

The short friendly name of the audio control module.

moduleInfo

Information about a RC module, including its id.

Return Value

An instance of the SDLAudioControlCapabilities class.

-initWithModuleName:moduleInfo:sourceAvailable:keepContextAvailable:volumeAvailable:equalizerAvailable:equalizerMaxChannelID:

Constructs a newly allocated SDLAudioControlCapabilities object with given parameters

Objective-C

- (nonnull instancetype)
       initWithModuleName:(nonnull NSString *)name
               moduleInfo:(nullable SDLModuleInfo *)moduleInfo
          sourceAvailable:(nullable NSNumber<SDLBool> *)sourceAvailable
     keepContextAvailable:(nullable NSNumber<SDLBool> *)keepContextAvailable
          volumeAvailable:(nullable NSNumber<SDLBool> *)volumeAvailable
       equalizerAvailable:(nullable NSNumber<SDLBool> *)equalizerAvailable
    equalizerMaxChannelID:(nullable NSNumber<SDLInt> *)equalizerMaxChannelID;

Swift

init(moduleName name: String, moduleInfo: SDLModuleInfo?, sourceAvailable: (NSNumber & SDLBool)?, keepContextAvailable: (NSNumber & SDLBool)?, volumeAvailable: (NSNumber & SDLBool)?, equalizerAvailable: (NSNumber & SDLBool)?, equalizerMaxChannelID: (NSNumber & SDLInt)?)

Parameters

name

The short friendly name of the audio control module.

moduleInfo

Information about a RC module, including its id.

sourceAvailable

Availability of the control of audio source.

volumeAvailable

Availability of the volume of audio source.

equalizerAvailable

Availability of the equalizer of audio source.

equalizerMaxChannelID

Equalizer channel ID (between 1-100).

Return Value

An instance of the SDLAudioControlCapabilities class.

moduleName

@abstract The short friendly name of the audio control module. It should not be used to identify a module by mobile application.

Required, Max String length 100 chars

Objective-C

@property (nonatomic, strong) NSString *_Nonnull moduleName;

Swift

var moduleName: String { get set }

sourceAvailable

@abstract Availability of the control of audio source.

Optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *sourceAvailable;

Swift

var sourceAvailable: (NSNumber & SDLBool)? { get set }

keepContextAvailable

Availability of the keepContext parameter.

Optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *keepContextAvailable;

Swift

var keepContextAvailable: (NSNumber & SDLBool)? { get set }

volumeAvailable

@abstract Availability of the control of audio volume.

Optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *volumeAvailable;

Swift

var volumeAvailable: (NSNumber & SDLBool)? { get set }

equalizerAvailable

@abstract Availability of the control of Equalizer Settings.

Optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *equalizerAvailable;

Swift

var equalizerAvailable: (NSNumber & SDLBool)? { get set }

equalizerMaxChannelId

@abstract Must be included if equalizerAvailable=true, and assume all IDs starting from 1 to this value are valid

Optional, Integer 1 - 100

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLInt> *equalizerMaxChannelId;

Swift

var equalizerMaxChannelId: (NSNumber & SDLInt)? { get set }

moduleInfo

Information about a RC module, including its id.

Optional

Objective-C

@property (nonatomic, strong, nullable) SDLModuleInfo *moduleInfo;

Swift

var moduleInfo: SDLModuleInfo? { get set }
View on GitHub.com
Previous Section Next Section