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
SDLLightCapabilities

SDLLightCapabilities Class Reference

Section Contents

Overview

Current Light capabilities.

@since RPC 5.0

-initWithName:

Constructs a newly allocated SDLLightCapabilities object with the name of the light or group of lights

Objective-C

- (nonnull instancetype)initWithName:(nonnull SDLLightName)name;

Swift

init(name: SDLLightName)

Parameters

name

The name of a light or a group of lights

Return Value

An instance of the SDLLightCapabilities class

-initWithName:densityAvailable:colorAvailable:statusAvailable:

Constructs a newly allocated SDLLightCapabilities object with given parameters

Objective-C

- (nonnull instancetype)initWithName:(nonnull SDLLightName)name
                    densityAvailable:(BOOL)densityAvailable
                      colorAvailable:(BOOL)colorAvailable
                     statusAvailable:(BOOL)statusAvailable;

Swift

init(name: SDLLightName, densityAvailable: Bool, colorAvailable: Bool, statusAvailable: Bool)

Parameters

name

The name of a light or a group of lights

densityAvailable

light’s density can be set remotely

colorAvailable

Light’s color can be set remotely by using the RGB color space

statusAvailable

whether status is available

Return Value

An instance of the SDLLightCapabilities class

name

@abstract The name of a light or a group of lights

Required, SDLLightName

Objective-C

@property (nonatomic, strong) SDLLightName _Nonnull name;

Swift

var name: SDLLightName { get set }

densityAvailable

@abstract Indicates if the light’s density can be set remotely (similar to a dimmer).

Optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *densityAvailable;

Swift

var densityAvailable: (NSNumber & SDLBool)? { get set }

colorAvailable

@abstract Indicates if the light’s color can be set remotely by using the RGB color space.

Optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *colorAvailable;

Swift

var colorAvailable: (NSNumber & SDLBool)? { get set }

statusAvailable

@abstract Indicates if the status (ON/OFF) can be set remotely. App shall not use read-only values (RAMP_UP/RAMP_DOWN/UNKNOWN/INVALID) in a setInteriorVehicleData request.

Optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *statusAvailable;

Swift

var statusAvailable: (NSNumber & SDLBool)? { get set }
View on GitHub.com
Previous Section Next Section