Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CutsceneCallback

[19:14] static extends: object

Static factory for FXGL's CutsceneCallback interface (com.almasb.fxgl.cutscene.CutsceneCallback). The interface has a single optional method, onCutsceneEnded(), so Aussom callers wire it through aji.closure rather than a Java bridge. Pass the result to APIs that accept a CutsceneCallback. Example: cb = CutsceneCallback.create(::onEnd); public onEnd() { c.println("cutscene done"); }

Methods

  • create (callback Cb)

    Wraps the given Aussom callback as a CutsceneCallback whose onCutsceneEnded fires the callback.

    • @p Cb is a callback () -> void.
    • @r An AussomJavaObject around a CutsceneCallback.