Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: EngineService
Wraps FXGL's NotificationService, the engine service that displays toast-style messages over the active scene. Reached at runtime via fxgl.getNotificationService (chunk 6); obtain a wrapper via adopt. The default implementation queues notifications, shows each one for three seconds with a one-second slide-in / slide-out animation, and supports configurable background and text colors.
NotificationService (Ajo = null)
Creates a NotificationService wrapper. Empty by default (populated later via adopt); the (Ajo) form wraps an existing instance from fxgl.getNotificationService.
Ajo is an optional AussomJavaObject around a NotificationService.adopt (object Ajo)
Wraps an existing NotificationService AussomJavaObject.
Ajo is an AussomJavaObject around a NotificationService.A new wrapper.pushNotification (string Message)
Pushes a notification with the given message text.
Message is the notification text.this objectpushNotificationWithIcon (string Message, object IconObj)
Pushes a notification with both message and a leading icon Node.
Message is the notification text.IconObj is a Node wrapper for the icon.this objectsetBackgroundColor (object ColorObj)
Sets the notification background color.
ColorObj is a Color wrapper.this objectsetTextColor (object ColorObj)
Sets the notification text color.
ColorObj is a Color wrapper.this objectgetBackgroundColor ()
Returns the current notification background color.
An AussomJavaObject around a Color.getTextColor ()
Returns the current notification text color.
An AussomJavaObject around a Color.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.