Alert Methods
The namespace for the Alert widget is kony.ui. It contains the following associated methods.
dismissAlert Method
This method is used to dismiss an alert.
Syntax
kony.ui.dismissAlert(alertHandler)
Return Values
None.
Argument
An object of Alert widget that was returned from the kony.ui.Alert API.
Limitation
In iOS, when you present multiple alerts in succession and then close an alert, all the alerts that are present above this alert are closed.
Example
var myalert = kony.ui.Alert({ "message": "Do you want to proceed ?", "alertType": constants.ALERT_TYPE_CONFIRMATION, "alertTitle": "Confirmation", "yesLabel": "OK", "noLabel": "CANCEL", "alertIcon": "", "alertHandler": null }, {}); kony.ui.dismissAlert(myalert); //Here, 'myalert' is the alerthandler that was returned from the kony.ui.Alert function
Platform Availability
- Android
- iPhone
Not available for Desktop Web.