Basics
Guides
API Reference
Basics
Guides
API Reference
[18:14] static extends: object
Helper for FXGL's Platform enum
(com.almasb.fxgl.core.util.Platform). Provides runtime
detection of the host (WINDOWS / MAC / LINUX / ANDROID / IOS /
BROWSER / EMBEDDED) plus convenience predicates (isMobile /
isDesktop / isBrowser / isEmbedded).
Use through the static-style helper: Platform.current()
returns the current platform name; Platform.isDesktop() and
friends return convenience flags.
get ()
Returns the current Platform enum value as an AussomJavaObject. Inspect via
.invoke("name").
An AussomJavaObject around a Platform value.current ()
Returns the current Platform enum name as a string.
A string ("WINDOWS", "MAC", "LINUX", "ANDROID", "IOS", "BROWSER", or "EMBEDDED").isDesktop ()
Returns true when running on a desktop OS.
isMobile ()
Returns true when running on a mobile platform.
isBrowser ()
Returns true when running in a browser.
isEmbedded ()
Returns true when running on an embedded platform.
valueOf (string Name)
Resolves a specific Platform enum value by name.
Name is the Platform enum name.An AussomJavaObject around the Platform value.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.