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
AlertCompletionListener

AlertCompletionListener Class Reference

Constructors

Instance Methods

Constructors

new AlertCompletionListener()

Initializes an instance of AlertCompletionListener

Instance Methods

alertCompletionListener.onComplete(success, tryAgainTime)

Returns whether an Alert operation was successful or not along with tryAgainTime

Kind: Instance method of AlertCompletionListener

ParamTypeDescription
success Boolean Boolean that is True if Operation was a success, False otherwise.
tryAgainTime Number Amount of time (in seconds) that an app must wait before resending an alert.

alertCompletionListener.setOnComplete(listener) ⇒ AlertCompletionListener

Set the OnComplete event function.

Kind: Instance method of AlertCompletionListener
Returns: AlertCompletionListener - A reference to this instance to support method chaining.

ParamTypeDescription
listener function A function to be called when the event occurs.
View on GitHub.com
Previous Section Next Section