Language

JniPeerMembers.JniInstanceMethods.InvokeNonvirtualObjectMethod Method

Definition

Invokes a Java instance method with nonvirtual JNI dispatch or a configured static redirect.

public Java.Interop.JniObjectReference InvokeNonvirtualObjectMethod(string encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters);
member this.InvokeNonvirtualObjectMethod : string * Java.Interop.IJavaPeerable * nativeptr<Java.Interop.JniArgumentValue> -> Java.Interop.JniObjectReference

Parameters

encodedMember
String

The Java method name and JNI descriptor separated by a period, such as run.()V.

self
IJavaPeerable

The managed peer with a valid Java instance reference.

parameters
JniArgumentValue*

The caller-owned JNI argument buffer matching the method descriptor, valid for this call; it can be null when there are 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.

Applies to