Up to date

This page is up to date for Godot 4.1. If you still find outdated information, please open an issue.

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