Outdated documentation

This documentation page refers to Godot 4.3, and may be outdated or incorrect.
Additionally, this engine version is no longer supported.

Check this page in the stable branch for the latest additions and corrections.

JavaClassWrapper

Inherits: Object

Provides access to the Java Native Interface.

Description

The JavaClassWrapper singleton provides a way for the Godot application to send and receive data through the Java Native Interface (JNI).

Note: This singleton is only available in Android builds.

Methods

JavaClass

wrap(name: String)


Method Descriptions

JavaClass wrap(name: String) 🔗

Wraps a class defined in Java, and returns it as a JavaClass Object type that Godot can interact with.

Note: This method only works on Android. On every other platform, this method does nothing and returns an empty JavaClass.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.