CallLongMethod
Calls a Java instance method defined by \<tt\>methodID\</tt\>, optionally passing an array of arguments (\<tt\>args\</tt\>) to the method.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
CallLongMethod(IntPtr, IntPtr, jvalue[])
Calls a Java instance method defined by \<tt\>methodID\</tt\>, optionally passing an array of arguments (\<tt\>args\</tt\>) to the method.
public static long CallLongMethod(IntPtr obj, IntPtr methodID, jvalue[] args)
Parameters
Returns
Type | Description |
|---|---|
| long |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)
CallLongMethod(IntPtr, IntPtr, Span<jvalue>)
Calls a Java instance method defined by \<tt\>methodID\</tt\>, optionally passing an array of arguments (\<tt\>args\</tt\>) to the method.
public static long CallLongMethod(IntPtr obj, IntPtr methodID, Span<jvalue> args)
Parameters
Returns
Type | Description |
|---|---|
| long |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)