Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

JNISingleton

Inherits: Object

Singleton that connects the engine with Android plugins to interface with native Android code.

Description

The JNISingleton is implemented only in the Android export. It's used to call methods and connect signals from an Android plugin written in Java or Kotlin. Methods and signals can be called and connected to the JNISingleton as if it is a Node. See Java Native Interface - Wikipedia for more information.

Tutorials


User-contributed notes

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