virtualx-engine-docs/_sources/classes/class_jnisingleton.rst.txt
2024-10-23 09:41:33 -07:00

34 lines
1.5 KiB
ReStructuredText

:github_url: hide
.. DO NOT EDIT THIS FILE!!!
.. Generated automatically from Godot engine sources.
.. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
.. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/JNISingleton.xml.
.. _class_JNISingleton:
JNISingleton
============
**Inherits:** :ref:`Object<class_Object>`
Singleton that connects the engine with Android plugins to interface with native Android code.
.. rst-class:: classref-introduction-group
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.
.. rst-class:: classref-introduction-group
Tutorials
---------
- :doc:`Creating Android plugins <../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.)`
.. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`