Skip to content
0.2.0-dev Download ZIP
28 lines ·1.2 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="JavaObject" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Represents an object from the Java Native Interface.
5 </brief_description>
6 <description>
7 Represents an object from the Java Native Interface. It can be returned from Java methods called on [JavaClass] or other [JavaObject]s. See [JavaClassWrapper] for an example.
8 [b]Note:[/b] This class only works on Android. On any other platform, this class does nothing.
9 [b]Note:[/b] This class is not to be confused with [JavaScriptObject].
10 </description>
11 <tutorials>
12 </tutorials>
13 <methods>
14 <method name="get_java_class" qualifiers="const">
15 <return type="JavaClass" />
16 <description>
17 Returns the [JavaClass] that this object is an instance of.
18 </description>
19 </method>
20 <method name="has_java_method" qualifiers="const">
21 <return type="bool" />
22 <param index="0" name="method" type="StringName" />
23 <description>
24 Returns [code]true[/code] if the given [param method] name exists in the object's Java methods.
25 </description>
26 </method>
27 </methods>
28</class>