Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Notification

[13:7] extends: FxObj

Wraps FXGL's Notification, the small value type pushed through NotificationService. Each Notification carries a message string and an optional Node icon. The constructor is internal so Notifications are produced by NotificationService rather than built directly; this wrapper exists for users that hold one obtained through AJI.

Methods

  • Notification ()

    Empty default constructor; populated by adopt.

  • adopt (object Ajo)

    Wraps an existing Notification AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a Notification.
    • @r A new wrapper.
  • getMessage ()

    Returns the notification message text.

    • @r A string.
  • getIcon ()

    Returns the notification icon Node (or null).

    • @r An AussomJavaObject around a Node, or null.