Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CallDoubleMethodUnsafe(nint, nint, jvalue*)

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

CallDoubleMethodUnsafe(IntPtr, IntPtr, jvalue*)

public static double CallDoubleMethodUnsafe(nint obj, nint methodID, jvalue* args)

Parameters

The Java object on which to call the instance method.

methodID

The ID of the method to call.

args

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

Returns

Type

Description

doubleThe value returned by the Java method.

Remarks