Documentation

Unity Engine


User Manual

Script Reference

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.
Read time 1 minuteLast updated 6 days ago

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