public abstract class NotificationAction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_COMMAND
The command action type indicates that a command would be executed,
when a notification is fired.
|
static java.lang.String |
ACTION_LOG_MESSAGE
The log message action type indicates that a message would be logged,
when a notification is fired.
|
static java.lang.String |
ACTION_POPUP_MESSAGE
The popup message action type indicates that a window (or a systray
popup), containing the corresponding notification message would be poped
up, when a notification is fired.
|
static java.lang.String |
ACTION_SOUND
The sound action type indicates that a sound would be played, when a
notification is fired.
|
static java.lang.String |
ACTION_VIBRATE
The vibrate action type indicates that the device will vibrate,
when a notification is fired.
|
Modifier | Constructor and Description |
---|---|
protected |
NotificationAction(java.lang.String actionType)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionType()
Return the action type name.
|
boolean |
isEnabled()
Returns TRUE if this notification action handler is enabled and FALSE
otherwise.
|
void |
setEnabled(boolean isEnabled)
Enables or disables this notification handler.
|
public static final java.lang.String ACTION_SOUND
public static final java.lang.String ACTION_POPUP_MESSAGE
public static final java.lang.String ACTION_LOG_MESSAGE
public static final java.lang.String ACTION_COMMAND
public static final java.lang.String ACTION_VIBRATE
protected NotificationAction(java.lang.String actionType)
actionType
- The action type name.public java.lang.String getActionType()
public boolean isEnabled()
public void setEnabled(boolean isEnabled)
isEnabled
- TRUE to enable this notification handler, FALSE to
disable it.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.