Name

javax.microedition.lcdui.AlertType

Synopsis

This class provides an indication of the nature of alerts. The alert type allows the implementation to directly signal the user without changing the current Displayable. The playSound( ) method can be used to generate a sound to alert the user. The predefined types of alerts are:

INFO

Provides non-threatening information to the user.

WARNING

Warns the user of a potentially dangerous operation.

ERROR

Alerts the user of a dangerous operation.

ALARM

Lets the user know of an event of which he previously requested to be notified.

CONFIRMATION

Confirms user action.

public class
AlertType {
   // public class fields
   public static final AlertType ALARM;
   public static final AlertType CONFIRMATION;
   public static final AlertType ERROR;
   public static final AlertType INFO;
   public static final AlertType WARNING;
   // protected constructors
   protected AlertType(  );
   // public instance methods
   public boolean playSound(Display display);
}

Get Wireless Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.