The Toast API contains the following function.
Creates a Toast
object.
Important: The kony.ui.Toast function is only available for the Android platform.
Syntax
kony.ui.Toast(configParams)
Input Parameters
Parameter | Description |
---|---|
configParams |
A JavaScript object that contains key-value pairs that provide the configuration of the toast to be created. The following keys are supported.
|
Example
var toast = new kony.ui.Toast({ "text": "This is the toast's text.", "duration": constants.SHORT }); toast.show();
Return Values
Returns an instantiated Toast Object.
Platform Availability
Copyright © 2013 Kony, Inc. All rights reserved. |