|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.PlaybackNotificator
public final class PlaybackNotificator
Controls the notification shown when a track is being played.
Field Summary | |
---|---|
static int |
ERROR_NOTIFICATION_ID
The ID of the error notification. |
static int |
NOTIFICATION_ID
The ID of the notification. |
Constructor Summary | |
---|---|
PlaybackNotificator(AmbientApplication app)
Creates new notification controller. |
Method Summary | |
---|---|
void |
cancelNotifications()
Cancels all notifications. |
void |
cancelPlaybackNotification()
Cancels the playback notification. |
(package private) void |
destroy()
Destroys the notificator, removing it from the bus. |
void |
notifyOnNextTrack(TrackMetadataBean bean,
ConfigurationBean config)
Forces the application to show a notification based on given configuration. |
(package private) void |
updateErrorNotification(int errorCount,
ErrorHandler.ErrorInfo last)
Updates the error notification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOTIFICATION_ID
public static final int ERROR_NOTIFICATION_ID
Constructor Detail |
---|
PlaybackNotificator(AmbientApplication app)
app
- the application instance.Method Detail |
---|
public void cancelNotifications()
public void cancelPlaybackNotification()
public void notifyOnNextTrack(TrackMetadataBean bean, ConfigurationBean config)
bean
- the bean to formatconfig
- the configuration to usevoid destroy()
void updateErrorNotification(int errorCount, ErrorHandler.ErrorInfo last)
errorCount
- the error/warning count. If zero the notification is hidden.last
- last error/warning or null
if no errors are
present.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |