Version: 2017.1
public static IntPtr GetConstructorID (IntPtr javaClass, string signature= "");

Parámetros

javaClass Raw JNI Java class object (obtained by calling AndroidJNI.FindClass).
signature Constructor method signature (e.g. obtained by calling AndroidJNIHelper.GetSignature).

Descripción

Scans a particular Java class for a constructor method matching a signature.

The signature comparison is done to allow for sub-/base-classes of the class types. If no signature is provided the first constuctor found will be returned.

See Also: AndroidJNIHelper.GetSignature, AndroidJNIHelper.GetMethodID, AndroidJNIHelper.GetFieldID.


public static IntPtr GetConstructorID (IntPtr jclass, object[] args);

Parámetros

javaClass Raw JNI Java class object (obtained by calling AndroidJNI.FindClass).
args Array with parameters to be passed to the constructor when invoked.

Descripción

Get a JNI method ID for a constructor based on calling arguments.

Scans a particular Java class for a constructor method matching a signature based on passed arguments. The signature comparison is done to allow for sub-/base-classes of the class types.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961