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

Methods

bool

has_java_method(method: StringName) const


Method Descriptions

bool has_java_method(method: StringName) const 🔗

Returns true if the given method name exists in the JNISingleton's Java methods.


User-contributed notes

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