JNISingleton
Inherits: Object
Description
Section titled “Description”Singleton that connects the engine with Android plugins to interface with native Android code.
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 Entity. See Java Native Interface - Wikipedia for more information.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| bool | has_java_method(method: StringName) const |
Method descriptions
Section titled “Method descriptions”has_java_method
bool has_java_method(method: StringName) const
Returns true if the given method name exists in the JNISingleton’s Java methods.
