JniAccessorsStruct class final
This struct contains functions which wrap method call / field access conveniently along with exception checking.
Flutter embedding checks for pending JNI exceptions before an FFI transition, which requires us to check for and clear the exception before returning to dart code, which requires these functions to return result types.
Constructors
Properties
-
callMethod
↔ Pointer<
NativeFunction< JniResult Function(JObjectPtr obj, JMethodIDPtr methodID, Int callType, Pointer< >JValue> args)> -
getter/setter pair
-
callStaticMethod
↔ Pointer<
NativeFunction< JniResult Function(JClassPtr cls, JMethodIDPtr methodID, Int callType, Pointer< >JValue> args)> -
getter/setter pair
-
getArrayElement
↔ Pointer<
NativeFunction< JniResult Function(JArrayPtr array, Int index, Int type)> > -
getter/setter pair
-
getClass
↔ Pointer<
NativeFunction< JniClassLookupResult Function(Pointer< >Char> internalName)> -
getter/setter pair
-
getExceptionDetails
↔ Pointer<
NativeFunction< JniExceptionDetails Function(JThrowablePtr exception)> > -
getter/setter pair
-
getField
↔ Pointer<
NativeFunction< JniResult Function(JObjectPtr obj, JFieldIDPtr fieldID, Int callType)> > -
getter/setter pair
-
getFieldID
↔ Pointer<
NativeFunction< JniPointerResult Function(JClassPtr cls, Pointer< >Char> fieldName, Pointer<Char> signature)> -
getter/setter pair
-
getMethodID
↔ Pointer<
NativeFunction< JniPointerResult Function(JClassPtr cls, Pointer< >Char> methodName, Pointer<Char> signature)> -
getter/setter pair
-
getStaticField
↔ Pointer<
NativeFunction< JniResult Function(JClassPtr cls, JFieldIDPtr fieldID, Int callType)> > -
getter/setter pair
-
getStaticFieldID
↔ Pointer<
NativeFunction< JniPointerResult Function(JClassPtr cls, Pointer< >Char> fieldName, Pointer<Char> signature)> -
getter/setter pair
-
getStaticMethodID
↔ Pointer<
NativeFunction< JniPointerResult Function(JClassPtr cls, Pointer< >Char> methodName, Pointer<Char> signature)> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
newObject
↔ Pointer<
NativeFunction< JniResult Function(JClassPtr cls, JMethodIDPtr ctor, Pointer< >JValue> args)> -
getter/setter pair
-
newObjectArray
↔ Pointer<
NativeFunction< JniResult Function(JSizeMarker length, JClassPtr elementClass, JObjectPtr initialElement)> > -
getter/setter pair
-
newPrimitiveArray
↔ Pointer<
NativeFunction< JniResult Function(JSizeMarker length, Int type)> > -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
setBooleanArrayElement
↔ Pointer<
NativeFunction< JThrowablePtr Function(JArrayPtr array, Int index, JBooleanMarker value)> > -
getter/setter pair
-
setByteArrayElement
↔ Pointer<
NativeFunction< JThrowablePtr Function(JArrayPtr array, Int index, JByteMarker value)> > -
getter/setter pair
-
setCharArrayElement
↔ Pointer<
NativeFunction< JThrowablePtr Function(JArrayPtr array, Int index, JCharMarker value)> > -
getter/setter pair
-
setDoubleArrayElement
↔ Pointer<
NativeFunction< JThrowablePtr Function(JArrayPtr array, Int index, JDoubleMarker value)> > -
getter/setter pair
-
setFloatArrayElement
↔ Pointer<
NativeFunction< JThrowablePtr Function(JArrayPtr array, Int index, JFloatMarker value)> > -
getter/setter pair
-
setIntArrayElement
↔ Pointer<
NativeFunction< JThrowablePtr Function(JArrayPtr array, Int index, JIntMarker value)> > -
getter/setter pair
-
setLongArrayElement
↔ Pointer<
NativeFunction< JThrowablePtr Function(JArrayPtr array, Int index, JLongMarker value)> > -
getter/setter pair
-
setShortArrayElement
↔ Pointer<
NativeFunction< JThrowablePtr Function(JArrayPtr array, Int index, JShortMarker value)> > -
getter/setter pair
Methods
-
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