文档

Unity Engine

Unity Engine

ToReflectedMethod(nint, nint, bool)

Converts a method ID derived from clazz to a \<tt\>java.lang.reflect.Method\</tt\> or \<tt\>java.lang.reflect.Constructor\</tt\> object.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

ToReflectedMethod(IntPtr, IntPtr, bool)

public static nint ToReflectedMethod(nint clazz, nint methodID, bool isStatic)

Parameters

clazz

The Java class that declares the method.

methodID

The ID of the method to convert.

isStatic

Set to true for a static method. Set to false for an instance (nonstatic) method.

Returns

Type

Description

IntPtrA local reference to the corresponding java.lang.reflect.Method or java.lang.reflect.Constructor object.

Remarks