API reference
JavaObject
Represents an object from the Java Native Interface.
Description
Section titled “Description”Represents an object from the Java Native Interface. It can be returned from Java methods called on JavaClass or other JavaObjects. See JavaClassWrapper for an example.
Note: This class only works on Android. On any other platform, this class does nothing.
Note: This class is not to be confused with JavaScriptObject.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| JavaClass | get_java_class() |
| bool | has_java_method(method) |
Method descriptions
Section titled “Method descriptions”get_java_class
Section titled “get_java_class”JavaClass get_java_class() const
Returns the JavaClass that this object is an instance of.
has_java_method
Section titled “has_java_method”bool has_java_method(method: StringName) const
Returns true if the given method name exists in the object’s Java methods.