Language

JNIEnv.InvokeConstructor Method

Definition

Overloads

Name Description
InvokeConstructor(IntPtr, String, JValue*)

Invokes the selected Java constructor on the allocated object.

InvokeConstructor(IntPtr, String, JValue[])

Invokes the selected Java constructor on the allocated object.

InvokeConstructor(IntPtr, String, JValue*)

Invokes the selected Java constructor on the allocated object.

public static void InvokeConstructor(IntPtr instance, string jniCtorSignature, Android.Runtime.JValue* constructorParameters);
static member InvokeConstructor : nativeint * string * nativeptr<Android.Runtime.JValue> -> unit

Parameters

instance
IntPtr

nativeint

A live JNI reference to the allocated object, usable on the calling thread during the call.

jniCtorSignature
String

The JNI signature of a void-returning constructor that matches the arguments.

constructorParameters
JValue*

A pointer to the constructor arguments in JNI order and types. The storage and referenced objects must remain valid during the call.

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

InvokeConstructor(IntPtr, String, JValue[])

Invokes the selected Java constructor on the allocated object.

public static void InvokeConstructor(IntPtr instance, string jniCtorSignature, params Android.Runtime.JValue[] constructorParameters);
static member InvokeConstructor : nativeint * string * Android.Runtime.JValue[] -> unit

Parameters

instance
IntPtr

nativeint

A live JNI reference to the allocated object, usable on the calling thread during the call.

jniCtorSignature
String

The JNI signature of a void-returning constructor that matches the arguments.

constructorParameters
JValue[]

The constructor arguments in JNI order and types. Referenced objects must remain valid during the call.

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