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
SDLConfiguration

SDLConfiguration Class Reference

Section Contents

Overview

Contains information about the app’s configuration, such as lifecycle, lockscreen, encryption, etc.

lifecycleConfig

The lifecycle configuration.

Objective-C

@property (nonatomic, copy, readonly) SDLLifecycleConfiguration *_Nonnull lifecycleConfig;

Swift

@NSCopying var lifecycleConfig: SDLLifecycleConfiguration { get }

lockScreenConfig

The lock screen configuration.

Objective-C

@property (nonatomic, copy, readonly) SDLLockScreenConfiguration *_Nonnull lockScreenConfig;

Swift

@NSCopying var lockScreenConfig: SDLLockScreenConfiguration { get }

loggingConfig

The log configuration.

Objective-C

@property (nonatomic, copy, readonly) SDLLogConfiguration *_Nonnull loggingConfig;

Swift

@NSCopying var loggingConfig: SDLLogConfiguration { get }

streamingMediaConfig

The streaming media configuration.

Objective-C

@property (nonatomic, copy, readonly, nullable) SDLStreamingMediaConfiguration *streamingMediaConfig;

Swift

@NSCopying var streamingMediaConfig: SDLStreamingMediaConfiguration? { get }

fileManagerConfig

The file manager configuration.

Objective-C

@property (nonatomic, copy, readonly) SDLFileManagerConfiguration *_Nonnull fileManagerConfig;

Swift

@NSCopying var fileManagerConfig: SDLFileManagerConfiguration { get }

encryptionConfig

The encryption configuration.

Objective-C

@property (nonatomic, copy, readonly) SDLEncryptionConfiguration *_Nonnull encryptionConfig;

Swift

@NSCopying var encryptionConfig: SDLEncryptionConfiguration { get }

-initWithLifecycle:lockScreen:logging:fileManager:encryption:

Creates a new configuration to be passed to the SDLManager with custom lifecycle, lock screen, logging, file manager and encryption configurations.

Objective-C

- (nonnull instancetype)
    initWithLifecycle:(nonnull SDLLifecycleConfiguration *)lifecycleConfig
           lockScreen:(nullable SDLLockScreenConfiguration *)lockScreenConfig
              logging:(nullable SDLLogConfiguration *)logConfig
          fileManager:(nullable SDLFileManagerConfiguration *)fileManagerConfig
           encryption:(nullable SDLEncryptionConfiguration *)encryptionConfig;

Swift

init(lifecycle lifecycleConfig: SDLLifecycleConfiguration, lockScreen lockScreenConfig: SDLLockScreenConfiguration?, logging logConfig: SDLLogConfiguration?, fileManager fileManagerConfig: SDLFileManagerConfiguration?, encryption encryptionConfig: SDLEncryptionConfiguration?)

Parameters

lifecycleConfig

The lifecycle configuration to be used.

lockScreenConfig

The lockscreen configuration to be used. If nil, the enabledConfiguration will be used.

logConfig

The logging configuration to be used. If nil, the defaultConfiguration will be used.

fileManagerConfig

The file manager configuration to be used or defaultConfiguration if nil.

encryptionConfig

The encryption configuration to be used. If nil, the defaultConfiguration will be used.

Return Value

The configuration

-initWithLifecycle:lockScreen:logging:streamingMedia:fileManager:encryption:

Creates a new configuration to be passed to the SDLManager with custom lifecycle, lock screen, logging, streaming media, file manager and encryption configurations.

Objective-C

- (nonnull instancetype)
    initWithLifecycle:(nonnull SDLLifecycleConfiguration *)lifecycleConfig
           lockScreen:(nullable SDLLockScreenConfiguration *)lockScreenConfig
              logging:(nullable SDLLogConfiguration *)logConfig
       streamingMedia:
           (nullable SDLStreamingMediaConfiguration *)streamingMediaConfig
          fileManager:(nullable SDLFileManagerConfiguration *)fileManagerConfig
           encryption:(nullable SDLEncryptionConfiguration *)encryptionConfig;

Swift

init(lifecycle lifecycleConfig: SDLLifecycleConfiguration, lockScreen lockScreenConfig: SDLLockScreenConfiguration?, logging logConfig: SDLLogConfiguration?, streamingMedia streamingMediaConfig: SDLStreamingMediaConfiguration?, fileManager fileManagerConfig: SDLFileManagerConfiguration?, encryption encryptionConfig: SDLEncryptionConfiguration?)

Parameters

lifecycleConfig

The lifecycle configuration to be used.

lockScreenConfig

The lockscreen configuration to be used. If nil, the enabledConfiguration will be used.

logConfig

The logging configuration to be used. If nil, the defaultConfiguration will be used.

streamingMediaConfig

The streaming media configuration to be used or nil if not used.

fileManagerConfig

The file manager configuration to be used or defaultConfiguration if nil.

encryptionConfig

The encryption configuration to be used. If nil, the defaultConfiguration will be used.

Return Value

The configuration

View on GitHub.com
Previous Section Next Section