JObject class

Class JObject is the root of the java class hierarchy in dart. Every dart class need has JObject as a superclass. All objects, including arrays, invoke all native method use callMethodSync from this.

Inheritance
Implementers
Available Extensions

Constructors

JObject({List? args, bool isInterface = false, String? className})
Default constructor. Create java object.
JObject.fromPointer(Pointer<Void> pointer, {String? className})
Wrapper java object pointer as dart object.

Properties

className String?
no setter
hashCode int
The hash code for this object.
no setterinherited
pointer Pointer<Void>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

callMethod(String methodName, String returnType, {List? args, List<String>? assignedSignature, Thread thread = Thread.mainThread}) Future
Async call java method, you can use JObjectCallMethod extension method which is more simplify.
callMethodSync(String methodName, String returnType, {List? args, List<String>? assignedSignature}) → dynamic
Sync call java native method, you can use JObjectSyncCallMethod extension method which is more simplify.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited