Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: RuntimeInfo

[14:7] extends: FxObj

Wraps FXGL's RuntimeInfo data class (com.almasb.fxgl.app.RuntimeInfo). Bundles the running Platform, FXGL version string, and build identifier. FXGL populates this at engine init and exposes it through GameSettings.getRuntimeInfo.

Methods

  • RuntimeInfo (PlatformObj = null, string Version = "", string Build = "")

    Creates a new RuntimeInfo with the given values. Pass null for PlatformObj to construct an empty wrapper for adopt.

    • @p PlatformObj is an AussomJavaObject around a com.almasb.fxgl.core.util.Platform enum value, or null.
    • @p Version is the FXGL version string.
    • @p Build is the build identifier.
  • adopt (object Ajo)

    Wraps an existing RuntimeInfo AussomJavaObject.

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

    Returns the running platform enum value.

    • @r An AussomJavaObject around a Platform.
  • getVersion ()

    Returns the FXGL version string.

    • @r A string.
  • getBuild ()

    Returns the build identifier string.

    • @r A string.