public class SoundNotificationHandlerImpl extends java.lang.Object implements SoundNotificationHandler
Constructor and Description |
---|
SoundNotificationHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionType()
Gets the type of this handler.
|
boolean |
isMute()
Specifies if currently the sound is off.
|
boolean |
isPlaying(NotificationData data)
Tells if the given notification sound is currently played.
|
void |
setMute(boolean mute)
Stops/Restores all currently playing sounds.
|
void |
start(SoundNotificationAction action,
NotificationData data)
Plays the sound given by the containing soundFileDescriptor.
|
void |
stop(NotificationData data)
Stops the sound.
|
public java.lang.String getActionType()
getActionType
in interface NotificationHandler
public boolean isMute()
isMute
in interface SoundNotificationHandler
public void setMute(boolean mute)
setMute
in interface SoundNotificationHandler
mute
- mute or not currently playing soundspublic void start(SoundNotificationAction action, NotificationData data)
start
in interface SoundNotificationHandler
action
- The action to act upon.data
- Additional data for the event.public void stop(NotificationData data)
stop
in interface SoundNotificationHandler
data
- Additional data for the event.public boolean isPlaying(NotificationData data)
isPlaying
in interface SoundNotificationHandler
data
- Additional data for the event.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.