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
Temperature

Temperature Class Reference

Constructors

Instance Methods

Constructors

new Temperature(parameters)

Initializes an instance of Temperature.

Instance Methods

temperature.getUnit() ⇒ TemperatureUnit

Get the Unit

Kind: Instance method of Temperature
Returns: TemperatureUnit - the KEY_UNIT value

temperature.getValueParam() ⇒ Number

Get the ValueParam

Kind: Instance method of Temperature
Returns: Number - the KEY_VALUE value

temperature.setUnit(unit) ⇒ Temperature

Set the Unit

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

ParamTypeDescription
unit TemperatureUnit Temperature Unit - The desired Unit.

temperature.setValueParam(value) ⇒ Temperature

Set the ValueParam

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

ParamTypeDescription
value Number Temperature Value in TemperatureUnit specified unit. Range depends on OEM and is not checked by SDL. - The desired ValueParam.
View on GitHub.com
Previous Section Next Section