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

SDLLightControlCapabilities Class Reference

Section Contents

Overview

Undocumented

-initWithModuleName:supportedLights:

Constructs a newly allocated SDLLightControlCapabilities object with given parameters

Objective-C

- (nonnull instancetype)
initWithModuleName:(nonnull NSString *)moduleName
   supportedLights:(nonnull NSArray<SDLLightCapabilities *> *)supportedLights;

Swift

init(moduleName: String, supportedLights: [SDLLightCapabilities])

Parameters

moduleName

friendly name of the light control module

supportedLights

array of available LightCapabilities

Return Value

An instance of the SDLLightControlCapabilities class

moduleName

@abstract The short friendly name of the light control module. It should not be used to identify a module by mobile application.

Required, Max String length 100 chars

Objective-C

@property (readwrite, strong, nonatomic) NSString *_Nonnull moduleName;

Swift

var moduleName: String { get set }

supportedLights

@abstract An array of available LightCapabilities that are controllable.

Required, NSArray of type SDLLightCapabilities minsize=1 maxsize=100

Objective-C

@property (readwrite, strong, nonatomic)
    NSArray<SDLLightCapabilities *> *_Nonnull supportedLights;

Swift

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