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

Eredita: Object

Singleton che collega il motore con i plugin Android per interfacciarsi con il codice Android nativo.

Descrizione

Il JNISingleton è implementato solo nell'esportazione Android. È utilizzato per chiamare metodi e connettere segnali da un plugin Android scritto in Java o Kotlin. I Metodi e i segnali possono essere chiamati e connessi a JNISingleton come se fosse un Node. Vedi Java Native Interface - Wikipedia per ulteriori informazioni.

Tutorial

Metodi

bool

has_java_method(method: StringName) const


Descrizioni dei metodi

bool has_java_method(method: StringName) const 🔗

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