callMethod
context(env: JniEnv)
inline fun <R> JObject.callMethod(methodId: JMethodID, args: JArguments): R(source)
inline fun <R> JObject.callMethod(methodId: JMethodID, args: JArguments): R(source)
Unifies usage of call<type>Method methods.
If type R is primitive type, it cannot be nullable, otherwise it must be nullable.