public class SoundNotificationAction extends NotificationAction
ACTION_COMMAND, ACTION_LOG_MESSAGE, ACTION_POPUP_MESSAGE, ACTION_SOUND, ACTION_VIBRATE
Constructor and Description |
---|
SoundNotificationAction(java.lang.String soundDescriptor,
int loopInterval)
Creates an instance of SoundNotification by
specifying the sound file descriptor and the loop interval.
|
SoundNotificationAction(java.lang.String soundDescriptor,
int loopInterval,
boolean isSoundNotificationEnabled,
boolean isSoundPlaybackEnabled,
boolean isSoundPCSpeakerEnabled)
Creates an instance of SoundNotification by
specifying the sound file descriptor and the loop interval.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescriptor()
Returns the descriptor pointing to the sound to be played.
|
int |
getLoopInterval()
Returns the loop interval.
|
boolean |
isSoundNotificationEnabled()
Returns if this sound is to be played on notification device.
|
boolean |
isSoundPCSpeakerEnabled()
Returns if this sound is to be played on pc speaker device.
|
boolean |
isSoundPlaybackEnabled()
Returns if this sound is to be played on playback device.
|
void |
setLoopInterval(int loopInterval)
Changes the loop interval.
|
void |
setSoundNotificationEnabled(boolean isSoundEnabled)
Enables or disables this sound for notification device.
|
void |
setSoundPCSpeakerEnabled(boolean isSoundEnabled)
Enables or disables this sound for pc speaker device.
|
void |
setSoundPlaybackEnabled(boolean isSoundEnabled)
Enables or disables this sound for playback device.
|
getActionType, isEnabled, setEnabled
public SoundNotificationAction(java.lang.String soundDescriptor, int loopInterval)
soundDescriptor
- the sound file descriptorloopInterval
- the loop intervalpublic SoundNotificationAction(java.lang.String soundDescriptor, int loopInterval, boolean isSoundNotificationEnabled, boolean isSoundPlaybackEnabled, boolean isSoundPCSpeakerEnabled)
soundDescriptor
- the sound file descriptorloopInterval
- the loop intervalisSoundNotificationEnabled
- True if this sound is activated. False Otherwise.isSoundPlaybackEnabled
- True if this sound is activated. False Otherwise.isSoundPCSpeakerEnabled
- True if this sound is activated. False Otherwise.public int getLoopInterval()
public void setLoopInterval(int loopInterval)
public java.lang.String getDescriptor()
public boolean isSoundNotificationEnabled()
public boolean isSoundPlaybackEnabled()
public boolean isSoundPCSpeakerEnabled()
public void setSoundNotificationEnabled(boolean isSoundEnabled)
isSoundEnabled
- True if this sound is played on notification
device. False Otherwise.public void setSoundPlaybackEnabled(boolean isSoundEnabled)
isSoundEnabled
- True if this sound is played on playback
device. False Otherwise.public void setSoundPCSpeakerEnabled(boolean isSoundEnabled)
isSoundEnabled
- True if this sound is played on speaker
device. False Otherwise.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.