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
OnKeyboardInput

OnKeyboardInput Class Reference

Constructors

Instance Methods

Constructors

new OnKeyboardInput(parameters)

Initializes an instance of OnKeyboardInput.

Instance Methods

onKeyboardInput.getData() ⇒ String

Get the Data

Kind: Instance method of OnKeyboardInput
Returns: String - the KEY_DATA value

onKeyboardInput.getEvent() ⇒ KeyboardEvent

Get the Event

Kind: Instance method of OnKeyboardInput
Returns: KeyboardEvent - the KEY_EVENT value

onKeyboardInput.setData(data) ⇒ OnKeyboardInput

Set the Data

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

ParamTypeDescription
data String On-screen keyboard input data. For dynamic keypress events, this will be the current compounded string of entry text. For entry submission events, this will be the full text entry (this will always return regardless of the mode). For entry cancelled and entry aborted events, this data param will be omitted. - The desired Data. {'string_min_length': 1, 'string_max_length': 500}

onKeyboardInput.setEvent(event) ⇒ OnKeyboardInput

Set the Event

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

ParamTypeDescription
event KeyboardEvent On-screen keyboard input data. - The desired Event.
View on GitHub.com
Previous Section Next Section