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

SDLLightCapabilities Class Reference

Section Contents

Overview

Undocumented

-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 (readwrite, strong, nonatomic) 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, nullable)
    NSNumber<SDLBool> *statusAvailable;

Swift

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