Language

JNIEnv.StartCreateInstance Method

Definition

Overloads

Name Description
StartCreateInstance(IntPtr, IntPtr, JValue*)

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

StartCreateInstance(IntPtr, IntPtr, JValue[])

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

StartCreateInstance(String, String, JValue*)

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

StartCreateInstance(String, String, JValue[])

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

StartCreateInstance(Type, String, JValue*)

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

StartCreateInstance(Type, String, JValue[])

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

StartCreateInstance(IntPtr, IntPtr, JValue*)

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

public static IntPtr StartCreateInstance(IntPtr jclass, IntPtr constructorId, Android.Runtime.JValue* constructorParameters);
static member StartCreateInstance : nativeint * nativeint * nativeptr<Android.Runtime.JValue> -> nativeint

Parameters

jclass
IntPtr

nativeint

A live JNI class reference for an allocatable class in the current VM. It must remain usable on the calling thread during the call.

constructorId
IntPtr

nativeint

A constructor ID, used only when .NET for Android 8 reports an Android API level of 10 or lower.

constructorParameters
JValue*

A pointer to constructor arguments, used only when .NET for Android 8 reports an Android API level of 10 or lower.

Returns

IntPtr

nativeint

A local JNI reference to the object, or Zero if allocation returns 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

StartCreateInstance(IntPtr, IntPtr, JValue[])

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

public static IntPtr StartCreateInstance(IntPtr jclass, IntPtr constructorId, params Android.Runtime.JValue[] constructorParameters);
static member StartCreateInstance : nativeint * nativeint * Android.Runtime.JValue[] -> nativeint

Parameters

jclass
IntPtr

nativeint

A live JNI class reference for an allocatable class in the current VM. It must remain usable on the calling thread during the call.

constructorId
IntPtr

nativeint

A constructor ID, used only when .NET for Android 8 reports an Android API level of 10 or lower.

constructorParameters
JValue[]

Constructor arguments, used only when .NET for Android 8 reports an Android API level of 10 or lower.

Returns

IntPtr

nativeint

A local JNI reference to the object, or Zero if allocation returns 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

StartCreateInstance(String, String, JValue*)

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

public static IntPtr StartCreateInstance(string jniClassName, string jniCtorSignature, Android.Runtime.JValue* constructorParameters);
static member StartCreateInstance : string * string * nativeptr<Android.Runtime.JValue> -> nativeint

Parameters

jniClassName
String

The JNI name used to find the class to allocate.

jniCtorSignature
String

A constructor signature, used only when .NET for Android 8 reports an Android API level of 10 or lower.

constructorParameters
JValue*

A pointer to constructor arguments, used only when .NET for Android 8 reports an Android API level of 10 or lower.

Returns

IntPtr

nativeint

A local JNI reference to the object, or Zero if allocation returns 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

StartCreateInstance(String, String, JValue[])

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

public static IntPtr StartCreateInstance(string jniClassName, string jniCtorSignature, params Android.Runtime.JValue[] constructorParameters);
static member StartCreateInstance : string * string * Android.Runtime.JValue[] -> nativeint

Parameters

jniClassName
String

The JNI name used to find the class to allocate.

jniCtorSignature
String

A constructor signature, used only when .NET for Android 8 reports an Android API level of 10 or lower.

constructorParameters
JValue[]

Constructor arguments, used only when .NET for Android 8 reports an Android API level of 10 or lower.

Returns

IntPtr

nativeint

A local JNI reference to the object, or Zero if allocation returns 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

StartCreateInstance(Type, String, JValue*)

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

public static IntPtr StartCreateInstance(Type type, string jniCtorSignature, Android.Runtime.JValue* constructorParameters);
static member StartCreateInstance : Type * string * nativeptr<Android.Runtime.JValue> -> nativeint

Parameters

type
Type

The managed type used to find the Java class to allocate.

jniCtorSignature
String

A constructor signature, used only when .NET for Android 8 reports an Android API level of 10 or lower.

constructorParameters
JValue*

A pointer to constructor arguments, used only when .NET for Android 8 reports an Android API level of 10 or lower.

Returns

IntPtr

nativeint

A local JNI reference to the object, or Zero if allocation returns 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

StartCreateInstance(Type, String, JValue[])

Allocates a Java object. On .NET for Android 8, it also invokes the constructor when the reported Android API level is 10 or lower; otherwise, it does not invoke the constructor.

public static IntPtr StartCreateInstance(Type type, string jniCtorSignature, params Android.Runtime.JValue[] constructorParameters);
static member StartCreateInstance : Type * string * Android.Runtime.JValue[] -> nativeint

Parameters

type
Type

The managed type used to find the Java class to allocate.

jniCtorSignature
String

A constructor signature, used only when .NET for Android 8 reports an Android API level of 10 or lower.

constructorParameters
JValue[]

Constructor arguments, used only when .NET for Android 8 reports an Android API level of 10 or lower.

Returns

IntPtr

nativeint

A local JNI reference to the object, or Zero if allocation returns 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