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 AlertTypeALARM
; public static final AlertTypeCONFIRMATION
; public static final AlertTypeERROR
; public static final AlertTypeINFO
; public static final AlertTypeWARNING
; // protected constructors protectedAlertType
( ); // public instance methods public booleanplaySound
(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.