new $jni.JavaObject(className, varargs)
Creates a new instance of a java class. This constructor is only needed for creating Java instances of classes that have not been imported with use().
Name | Type | Description |
---|---|---|
className |
string |
The name of the class of the object to construct |
varargs |
Constructor arguments |
- See:
-
- $jni.use Represents a Java instance
Methods
toJS() : object
Returns a JavaScript representation of the object
Returns:
Type | Description |
---|---|
object |