Version: 2022.3
언어: 한국어

AndroidJavaObjectConstructor

매뉴얼로 전환
public AndroidJavaObject (string className, params object[] args);

파라미터

className Specifies the Java class name (e.g. "java.lang.String" or "java/lang/String").
args An array of parameters passed to the constructor.

설명

Construct an AndroidJavaObject based on the name of the class.

This essentially means locate the class type, allocate an object and run the specified constructor.


public AndroidJavaObject (IntPtr jobject);

파라미터

jobject A reference to existing Java object.

설명

Create AndroidJavaObject for existing Java object.

Does not take ownership of passed reference, you still have to delete it.


public AndroidJavaObject (IntPtr clazz, IntPtr constructorID, params object[] args);

파라미터

clazz A pointer to Java class.
constructorID A method ID for the constructor to be used.
args An array of parameters passed to the constructor.

설명

Create AndroidJavaObject (and it's Java counterpart) using given Java class and constructor.