JNIEnv.StartCreateInstance 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 |
|---|---|
| StartCreateInstance(IntPtr, IntPtr, JValue*) |
Creates a Java object but does not call its constructor. |
| StartCreateInstance(IntPtr, IntPtr, JValue[]) |
Creates a Java object but does not call its constructor. |
| StartCreateInstance(String, String, JValue*) |
Creates a Java object but does not call its constructor. |
| StartCreateInstance(String, String, JValue[]) |
Creates a Java object but does not call its constructor. |
| StartCreateInstance(Type, String, JValue*) |
Creates a Java object but does not call its constructor. |
| StartCreateInstance(Type, String, JValue[]) |
Creates a Java object but does not call its constructor. |
StartCreateInstance(IntPtr, IntPtr, JValue*)
Creates a Java object but does not call its 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. It is not read during allocation.
- constructorParameters
- JValue*
A pointer to constructor arguments. The arguments are not read during allocation.
Returns
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[])
Creates a Java object but does not call its 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. It is not read during allocation.
- constructorParameters
- JValue[]
Constructor arguments. The argument values are not read during allocation.
Returns
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*)
Creates a Java object but does not call its 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. It is not read during allocation.
- constructorParameters
- JValue*
A pointer to constructor arguments. The arguments are not read during allocation.
Returns
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[])
Creates a Java object but does not call its 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. It is not read during allocation.
- constructorParameters
- JValue[]
Constructor arguments. The argument values are not read during allocation.
Returns
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*)
Creates a Java object but does not call its 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. It is not read during allocation.
- constructorParameters
- JValue*
A pointer to constructor arguments. The arguments are not read during allocation.
Returns
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[])
Creates a Java object but does not call its 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. It is not read during allocation.
- constructorParameters
- JValue[]
Constructor arguments. The argument values are not read during allocation.
Returns
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.