JniEnvironment.InstanceMethods.CallObjectMethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CallObjectMethod(JniObjectReference, JniMethodInfo) |
Invokes a parameterless Java object-returning instance method with virtual JNI dispatch. |
| CallObjectMethod(JniObjectReference, JniMethodInfo, JniArgumentValue*) |
Invokes a Java object-returning instance method with virtual JNI dispatch. |
CallObjectMethod(JniObjectReference, JniMethodInfo)
Invokes a parameterless Java object-returning instance method with virtual JNI dispatch.
public static Java.Interop.JniObjectReference CallObjectMethod(Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method);
static member CallObjectMethod : Java.Interop.JniObjectReference * Java.Interop.JniMethodInfo -> Java.Interop.JniObjectReference
Parameters
- instance
- JniObjectReference
A valid reference to the Java object.
- method
- JniMethodInfo
A valid JNI identifier for a parameterless object-returning instance method.
Returns
A local JNI reference that the caller must release, or an invalid reference for Java null.
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
CallObjectMethod(JniObjectReference, JniMethodInfo, JniArgumentValue*)
Invokes a Java object-returning instance method with virtual JNI dispatch.
public static Java.Interop.JniObjectReference CallObjectMethod(Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args);
static member CallObjectMethod : Java.Interop.JniObjectReference * Java.Interop.JniMethodInfo * nativeptr<Java.Interop.JniArgumentValue> -> Java.Interop.JniObjectReference
Parameters
- instance
- JniObjectReference
A valid reference to the Java object.
- method
- JniMethodInfo
A valid JNI identifier for an object-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
A local JNI reference that the caller must release, or an invalid reference for Java null.
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.