The Alert class is a subclass of the Screen class. It provides user interface. The main function of the Alert class is to inform a user about any errors or exceptions. It has the following two constructors:
- Title: It specifies the label or caption for an instance of the Alert class.
- Alert text: It displays the alert message.
- Alert type: It specifies an image to be displayed with the specified message. It is an optional parameter.
- A: It specifies one of the AlertType constants such as WARNING, INFO, etc.
The instance of the Alert class is made available to a user by passing it as an argument to the setCurrent() method.
Get certified in first attempt download scmad - SCMAD simulation. Pass SUN CX310-110 - SCMAD Mobile Application Developer