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
SDLLightControlData

SDLLightControlData Class Reference

Section Contents

Overview

Data about the current light controls

@since SDL 5.0

-initWithLightStates:

Constructs a newly allocated SDLLightControlData object with lightState

Objective-C

- (nonnull instancetype)initWithLightStates:
    (nonnull NSArray<SDLLightState *> *)lightState;

Swift

init(lightStates lightState: [SDLLightState])

Parameters

lightState

An array of LightNames and their current or desired status

Return Value

An instance of the SDLLightControlData class

lightState

@abstract An array of LightNames and their current or desired status. Status of the LightNames that are not listed in the array shall remain unchanged.

Required, NSArray of type SDLLightState minsize=“1” maxsize=“100”

Objective-C

@property (nonatomic, strong) NSArray<SDLLightState *> *_Nonnull lightState;

Swift

var lightState: [SDLLightState] { get set }
View on GitHub.com
Previous Section Next Section