Language

JniType.NewObject(JniMethodInfo, JniArgumentValue*) Method

Definition

Allocates a Java object and invokes the supplied constructor.

public Java.Interop.JniObjectReference NewObject(Java.Interop.JniMethodInfo constructor, Java.Interop.JniArgumentValue* parameters);
member this.NewObject : Java.Interop.JniMethodInfo * nativeptr<Java.Interop.JniArgumentValue> -> Java.Interop.JniObjectReference

Parameters

constructor
JniMethodInfo

The constructor identifier for this Java class.

parameters
JniArgumentValue*

A pointer to argument values in constructor-signature order.

Returns

The local JNI reference returned by object construction.

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