public class VibrateNotificationAction extends NotificationAction
VibrateNotificationHandler.cancel()
method is
called.ACTION_COMMAND, ACTION_LOG_MESSAGE, ACTION_POPUP_MESSAGE, ACTION_SOUND, ACTION_VIBRATE
Constructor and Description |
---|
VibrateNotificationAction(java.lang.String descriptor,
long milis)
Vibrate constantly for the specified period of time.
|
VibrateNotificationAction(java.lang.String descriptor,
long[] patter,
int repeat)
Vibrate using given patter and optionally loop if the
repeat index is not -1.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescriptor()
The string identifier of this action.
|
long[] |
getPattern()
Returns vibrate pattern array.
|
int |
getRepeat()
The index at which the pattern shall be looped during playback
or -1 to play it once.
|
getActionType, isEnabled, setEnabled
public VibrateNotificationAction(java.lang.String descriptor, long milis)
descriptor
- string identifier of this action.milis
- the number of miliseconds to vibrate.public VibrateNotificationAction(java.lang.String descriptor, long[] patter, int repeat)
descriptor
- the string identifier of this action.patter
- the array containing vibrate pattern intervals.repeat
- the index into the patter at which it will be looped
(-1 to disable repeat).VibrateNotificationAction
public java.lang.String getDescriptor()
public long[] getPattern()
public int getRepeat()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.