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
Enum

Enum Class Reference

Constructors

Instance Methods

Constructors

new Enum()

Initializes an instance of Enum.

Instance Methods

enum.keyForValue(value)

A method for subclasses to implement that does what _keyForValue does

Kind: Instance method of Enum

ParamTypeDescription
value * A primitive value to find the matching key for in the map of the subclass

enum.valueForKey(key) ⇒ *

A method for subclasses to implement that does what _valueForKey does

Kind: Instance method of Enum
Returns: * - Returns a value if found, or null if not found

ParamTypeDescription
key * The key to find the value of.
View on GitHub.com
Previous Section Next Section