reckfellENGINE

JavaObject

Represents an object from the Java Native Interface.

On this page
class JavaObjectReckfellSharpInherits RefCounted

Represents an object from the Java Native Interface.

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.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

JavaObjectConstructor
# JavaObject
C#
public JavaObject();

Methods2

GetJavaClassJavaClass
# GetJavaClass
C#
public JavaClass GetJavaClass();

Returns the JavaClass that this object is an instance of.

Returns JavaClass
HasJavaMethodbool
# HasJavaMethod
C#
public bool HasJavaMethod(StringName method);

Returns true if the given method name exists in the object's Java methods.

Parameters
NameTypeDefault
methodStringName—
Returns bool
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.