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.
Pass SUN scmad - SCMAD Download practice question and study guide for CX310-110 for exam.If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
