1234567891011121314151617181920212223242526272829 |
- :github_url: hide
- .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the JNISingleton.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_JNISingleton:
- JNISingleton
- ============
- **Inherits:** :ref:`Object<class_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 <https://en.wikipedia.org/wiki/Java_Native_Interface>`__ for more information.
- Tutorials
- ---------
- - :doc:`../tutorials/platform/android/android_plugin`
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|