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 }