Function
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
- Android