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
JavaScript Suite Documentation
LightControlData

LightControlData Class Reference

Constructors

Instance Methods

Constructors

new LightControlData(parameters)

Initializes an instance of LightControlData.

Instance Methods

lightControlData.getLightState() ⇒ Array.<LightState>

Get the LightState

Kind: Instance method of LightControlData
Returns: Array.<LightState> - the KEY_LIGHT_STATE value

lightControlData.setLightState(state) ⇒ LightControlData

Set the LightState

Kind: Instance method of LightControlData
Returns: LightControlData - The class instance for method chaining.

ParamTypeDescription
state Array.<LightState> An array of LightNames and their current or desired status. No change to the status of the LightNames that are not listed in the array. - The desired LightState. {'array_min_size': 1, 'array_max_size': 100}
View on GitHub.com
Previous Section Next Section