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
SDLTemplateConfiguration

SDLTemplateConfiguration Class Reference

Section Contents

Overview

Used to set an alternate template layout to a window.

@since SDL 6.0

-initWithPredefinedLayout:

Constructor with the required values.

Objective-C

- (nonnull instancetype)initWithPredefinedLayout:
    (nonnull SDLPredefinedLayout)predefinedLayout;

Swift

init(predefinedLayout: SDLPredefinedLayout)

Parameters

predefinedLayout

A template layout an app uses to display information. The broad details of the layout are defined, but the details depend on the IVI system. Used in SetDisplayLayout.

-initWithTemplate:

Init with the required values.

Objective-C

- (nonnull instancetype)initWithTemplate:(nonnull NSString *)template;

Swift

init(template: String)

Parameters

template

Predefined or dynamically created window template. Currently only predefined window template layouts are defined.

-initWithTemplate:dayColorScheme:nightColorScheme:

Convenience constructor with all the parameters.

Objective-C

- (nonnull instancetype)
    initWithTemplate:(nonnull NSString *)template
      dayColorScheme:(nullable SDLTemplateColorScheme *)dayColorScheme
    nightColorScheme:(nullable SDLTemplateColorScheme *)nightColorScheme;

Swift

init(template: String, dayColorScheme: SDLTemplateColorScheme?, nightColorScheme: SDLTemplateColorScheme?)

Parameters

template

Predefined or dynamically created window template. Currently only predefined window template layouts are defined.

dayColorScheme

The color scheme to use when the head unit is in a light / day situation. If nil, the existing color scheme will be used.

nightColorScheme

The color scheme to use when the head unit is in a dark / night situation.

template

Predefined or dynamically created window template. Currently only predefined window template layouts are defined.

Objective-C

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

Swift

var template: String { get set }

dayColorScheme

The color scheme to use when the head unit is in a light / day situation.

Objective-C

@property (nonatomic, strong, nullable) SDLTemplateColorScheme *dayColorScheme;

Swift

var dayColorScheme: SDLTemplateColorScheme? { get set }

nightColorScheme

The color scheme to use when the head unit is in a dark / night situation.

Objective-C

@property (nonatomic, strong, nullable) SDLTemplateColorScheme *nightColorScheme;

Swift

var nightColorScheme: SDLTemplateColorScheme? { get set }
View on GitHub.com
Previous Section Next Section