Files
godot-docs-l10n/classes/zh_CN/class_jnisingleton.rst

39 lines
1.8 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. DO NOT EDIT THIS FILE!!!
.. Generated automatically from Godot engine sources.
.. Generator: https://github.com/godotengine/godot/tree/4.4/doc/tools/make_rst.py.
.. XML source: https://github.com/godotengine/godot/tree/4.4/doc/classes/JNISingleton.xml.
.. _class_JNISingleton:
JNISingleton
============
**继承:** :ref:`Object<class_Object>`
将引擎与 Android 插件连接起来以与原生 Android 代码交互的单例。
.. rst-class:: classref-introduction-group
描述
----
JNISingleton 仅在 Android 导出中实现。它用于从用 Java 或 Kotlin 编写的 Android 插件调用方法、连接信号。方法和信号可以被调用并连接到 JNISingleton就好像它是一个 Node 一样。有关更多信息,请参阅 `Java 本地接口 - 维基百科 <https://zh.wikipedia.org/zh-cn/Java%E6%9C%AC%E5%9C%B0%E6%8E%A5%E5%8F%A3>`__\ 。
.. rst-class:: classref-introduction-group
教程
----
- `创建 Android 插件 <../tutorials/platform/android/android_plugin.html#doc-android-plugin>`__
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
.. |void| replace:: :abbr:`void (无返回值。)`