public class PopupMessageNotificationAction extends NotificationAction
ACTION_COMMAND, ACTION_LOG_MESSAGE, ACTION_POPUP_MESSAGE, ACTION_SOUND, ACTION_VIBRATE
Constructor and Description |
---|
PopupMessageNotificationAction(java.lang.String defaultMessage)
Creates an instance of PopupMessageNotificationHandlerImpl by
specifying the default message to use if no message is specified.
|
PopupMessageNotificationAction(java.lang.String defaultMessage,
long timeout)
Creates an instance of PopupMessageNotificationHandlerImpl by
specifying the default message to use if no message is specified.
|
PopupMessageNotificationAction(java.lang.String defaultMessage,
long timeout,
java.lang.String groupName)
Creates an instance of PopupMessageNotificationHandlerImpl by
specifying the default message to use if no message is specified.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultMessage()
Return the default message to use if no message is specified.
|
java.lang.String |
getGroupName()
Returns name of popup group that will be used for merging notifications.
|
long |
getTimeout()
Returns suggested timeout value in ms for hiding the popup if not clicked
by the user.
|
void |
setGroupName(java.lang.String groupName)
Sets the name of the group that will be used for merging popups.
|
getActionType, isEnabled, setEnabled
public PopupMessageNotificationAction(java.lang.String defaultMessage)
defaultMessage
- the default message to use if no message is
specifiedpublic PopupMessageNotificationAction(java.lang.String defaultMessage, long timeout)
defaultMessage
- the default message to use if no message is
specifiedtimeout
- suggested timeout in ms for hiding the popup if not
clicked by the user, -1 for infinitypublic PopupMessageNotificationAction(java.lang.String defaultMessage, long timeout, java.lang.String groupName)
defaultMessage
- the default message to use if no message is
specifiedtimeout
- suggested timeout in ms for hiding the popup if not
clicked by the user, -1 for infinitygroupName
- name of the group that will be used for merging popupspublic java.lang.String getDefaultMessage()
public long getTimeout()
public void setGroupName(java.lang.String groupName)
groupName
- name of popup group to set.public java.lang.String getGroupName()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.