public interface NotificationService extends AchievementListener
Modifier and Type | Method and Description |
---|---|
javafx.scene.paint.Color |
getBackgroundColor() |
Position |
getPosition() |
default void |
onAchievementEvent(AchievementEvent event)
Fired on achievement event.
|
void |
pushNotification(String message)
Push a notification with given message.
|
void |
setBackgroundColor(javafx.scene.paint.Color backgroundColor)
Set background color of notifications.
|
void |
setPosition(Position position)
Set position of future notifications.
|
void pushNotification(String message)
message
- the messagePosition getPosition()
void setPosition(Position position)
position
- where to show notificationjavafx.scene.paint.Color getBackgroundColor()
void setBackgroundColor(javafx.scene.paint.Color backgroundColor)
backgroundColor
- the colordefault void onAchievementEvent(AchievementEvent event)
AchievementListener
onAchievementEvent
in interface AchievementListener
event
- the eventCopyright © 2017. All rights reserved.