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

SDLTemplateColorScheme Class Reference

Section Contents

Overview

Undocumented

-initWithPrimaryRGBColor:secondaryRGBColor:backgroundRGBColor:

Undocumented

Objective-C

- (instancetype)initWithPrimaryRGBColor:(SDLRGBColor *)primaryColor secondaryRGBColor:(SDLRGBColor *)secondaryColor backgroundRGBColor:(SDLRGBColor *)backgroundColor;

Swift

init(primaryRGBColor primaryColor: SDLRGBColor, secondaryRGBColor secondaryColor: SDLRGBColor, backgroundRGBColor backgroundColor: SDLRGBColor)

-initWithPrimaryColor:secondaryColor:backgroundColor:

Undocumented

Objective-C

- (instancetype)initWithPrimaryColor:(UIColor *)primaryColor secondaryColor:(UIColor *)secondaryColor backgroundColor:(UIColor *)backgroundColor;

Swift

init(primaryColor: UIColor, secondaryColor: UIColor, backgroundColor: UIColor)

primaryColor

The primary color. This must always be your primary brand color. If the OEM only uses one color, this will be the color. It is recommended to the OEMs that the primaryColor should change the mediaClockTimer bar and the highlight color of soft buttons.

Objective-C

@property (readwrite, strong, nonatomic, nullable) SDLRGBColor *primaryColor;

Swift

var primaryColor: SDLRGBColor? { get set }

secondaryColor

The secondary color. This may be an accent or complimentary color to your primary brand color. If the OEM uses this color, they must also use the primary color. It is recommended to the OEMs that the secondaryColor should change the background color of buttons, such as soft buttons.

Objective-C

@property (readwrite, strong, nonatomic, nullable) SDLRGBColor *secondaryColor;

Swift

var secondaryColor: SDLRGBColor? { get set }

backgroundColor

The background color to be used on the template. If the OEM does not support this parameter, assume on dayColorScheme that this will be a light color, and on nightColorScheme a dark color. You should do the same for your custom schemes.

Objective-C

@property (readwrite, strong, nonatomic, nullable) SDLRGBColor *backgroundColor;

Swift

var backgroundColor: SDLRGBColor? { get set }
View on GitHub.com
Previous Section Next Section