Codename One Adds Cross-Platform AR and VR Support for Java and Kotlin Developers

Open-source framework Codename One has introduced two new packages — com.codename1.ar and com.codename1.vr — via pull request #5335, bringing augmented and virtual reality support to its single-codebase Java and Kotlin platform. The AR package provides a unified API over Apple's ARKit and Google's ARCore, covering world tracking, plane detection, image tracking, face tracking, and anchor placement. Developers write identical code for both iOS and Android, with each platform's native SDK handling execution beneath an abstraction layer that exposes no platform-specific types. A key addition is a desktop simulator that replicates a virtual room environment, allowing developers to test and debug AR logic — including plane detection and hit testing — without needing a physical device. The simulator also lets developers manually trigger edge-case states such as tracking loss and lighting changes, significantly shortening the AR development feedback loop.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in