Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CallStaticLongMethodUnsafe(nint, nint, jvalue*)

Invokes the specified \<tt\>methodID\</tt\> static method on a Java object, optionally passing in an array of arguments (\<tt\>args\</tt\>).
Read time 1 minuteLast updated 4 days ago

Definition

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

CallStaticLongMethodUnsafe(IntPtr, IntPtr, jvalue*)

public static long CallStaticLongMethodUnsafe(nint clazz, nint methodID, jvalue* args)

Parameters

clazz

The Java class on which to call the static method.

methodID

The ID of the method to call.

args

jvalue*
An array of arguments to pass to the method.

Returns

Type

Description

longThe value returned by the Java method.

Remarks