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
WindowState

WindowState Class Reference

Constructors

Instance Methods

Constructors

new WindowState(parameters)

Initializes an instance of WindowState.

Instance Methods

windowState.getApproximatePosition() ⇒ Number

Get the ApproximatePosition

Kind: Instance method of WindowState
Returns: Number - the KEY_APPROXIMATE_POSITION value

windowState.getDeviation() ⇒ Number

Get the Deviation

Kind: Instance method of WindowState
Returns: Number - the KEY_DEVIATION value

windowState.setApproximatePosition(position) ⇒ WindowState

Set the ApproximatePosition

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

ParamTypeDescription
position Number The approximate percentage that the window is open - 0 being fully closed, 100 being fully open - The desired ApproximatePosition. {'num_min_value': 0, 'num_max_value': 100}

windowState.setDeviation(deviation) ⇒ WindowState

Set the Deviation

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

ParamTypeDescription
deviation Number The percentage deviation of the approximatePosition. e.g. If the approximatePosition is 50 and the deviation is 10, then the window's location is somewhere between 40 and 60. - The desired Deviation. {'num_min_value': 0, 'num_max_value': 100}
View on GitHub.com
Previous Section Next Section