2020-01-19 22:19:21 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 08:08:05 +00:00
<class name= "JavaClassWrapper" inherits= "Object" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2020-01-19 22:19:21 +00:00
<brief_description >
2024-01-05 10:38:27 +00:00
Provides access to the Java Native Interface.
2020-01-19 22:19:21 +00:00
</brief_description>
<description >
2024-01-05 10:38:27 +00:00
The JavaClassWrapper singleton provides a way for the Godot application to send and receive data through the [url=https://developer.android.com/training/articles/perf-jni]Java Native Interface[/url] (JNI).
[b]Note:[/b] This singleton is only available in Android builds.
2020-01-19 22:19:21 +00:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "wrap" >
2021-07-30 13:28:05 +00:00
<return type= "JavaClass" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "name" type= "String" />
2020-01-19 22:19:21 +00:00
<description >
2024-01-05 10:38:27 +00:00
Wraps a class defined in Java, and returns it as a [JavaClass] [Object] type that Godot can interact with.
[b]Note:[/b] This method only works on Android. On every other platform, this method does nothing and returns an empty [JavaClass].
2020-01-19 22:19:21 +00:00
</description>
</method>
</methods>
</class>