Language

JniEnvironment.InstanceMethods.CallIntMethod Method

Definition

Overloads

Name Description
CallIntMethod(JniObjectReference, JniMethodInfo, JniArgumentValue*)

Invokes a Java int-returning instance method with virtual JNI dispatch.

CallIntMethod(JniObjectReference, JniMethodInfo)

Invokes a parameterless Java int-returning instance method with virtual JNI dispatch.

CallIntMethod(JniObjectReference, JniMethodInfo, JniArgumentValue*)

Invokes a Java int-returning instance method with virtual JNI dispatch.

public static int CallIntMethod(Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args);
static member CallIntMethod : Java.Interop.JniObjectReference * Java.Interop.JniMethodInfo * nativeptr<Java.Interop.JniArgumentValue> -> int

Parameters

instance
JniObjectReference

A valid reference to the Java object.

method
JniMethodInfo

A valid JNI identifier for an int-returning instance method.

args
JniArgumentValue*

A caller-owned JNI argument buffer matching the method descriptor and valid for this call, or a null pointer for no arguments.

Returns

The method result as int.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CallIntMethod(JniObjectReference, JniMethodInfo)

Invokes a parameterless Java int-returning instance method with virtual JNI dispatch.

public static int CallIntMethod(Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method);
static member CallIntMethod : Java.Interop.JniObjectReference * Java.Interop.JniMethodInfo -> int

Parameters

instance
JniObjectReference

A valid reference to the Java object.

method
JniMethodInfo

A valid JNI identifier for a parameterless int-returning instance method.

Returns

The method result as int.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to