Basics
Guides
API Reference
Basics
Guides
API Reference
[25:7] extends: Pane
Wraps an AussomNotificationView (subclass of FXGL's abstract NotificationView). This is the subclass-extension contract for custom notification renderers: FXGL instantiates the registered NotificationView subclass itself, so the typical production path is to ship a concrete Java/Kotlin subclass and register the class. This wrapper is most useful for tests and for adoption of a view obtained through AJI. Callback signatures: onPlayInAnimation() (no args) onPush(notificationAjo) onPlayOutAnimation() (no args) onUpdate(double tpf)
NotificationView ()
Creates a new NotificationView bridge.
adopt (object Ajo)
Wraps an existing view AussomJavaObject.
Ajo is an AussomJavaObject around an AussomNotificationView.A new wrapper.setBackgroundColor (object ColorAjo)
Sets the background fill Color used by the view.
ColorAjo is an AussomJavaObject around a javafx.scene.paint.Color.this objectsetTextColor (object ColorAjo)
Sets the text fill Color used by the view.
ColorAjo is an AussomJavaObject around a javafx.scene.paint.Color.this objectsetAppWidth (int AppWidth)
Sets the app width used by the view's layout math.
AppWidth is an int width in pixels.this objectsetAppHeight (int AppHeight)
Sets the app height used by the view's layout math.
AppHeight is an int height in pixels.this objectonPlayInAnimation (callback Cb)
Registers the playInAnimation callback (fires when the view is added to the scene).
Cb is a callback () -> void.this objectonPush (callback Cb)
Registers the push callback (fires when the next Notification is presented).
Cb is a callback (notificationAjo) -> void.this objectonPlayOutAnimation (callback Cb)
Registers the playOutAnimation callback (fires when the view is removed from the scene).
Cb is a callback () -> void.this objectonUpdate (callback Cb)
Registers the per-frame onUpdate callback.
Cb is a callback (double tpf) -> void.this objectgetBackgroundColor ()
Returns the background fill Color AJO.
getTextColor ()
Returns the text fill Color AJO.
getAppWidth ()
Returns the app width in pixels.
getAppHeight ()
Returns the app height in pixels.
playInAnimation ()
Direct trigger for the playInAnimation hook. Invokes the Aussom callback registered via onPlayInAnimation.
playOutAnimation ()
Direct trigger for the playOutAnimation hook.
push (object NotificationAjo)
Direct trigger for the push hook with the supplied Notification AJO.
NotificationAjo is an AussomJavaObject around a com.almasb.fxgl.notification.Notification.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.