Documentation

Unity Engine

Download Unity

Unity Engine

CallCharMethod

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 a month ago

Definition

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

CallCharMethod(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 char CallCharMethod(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

charThe value returned by the Java method.

Remarks

CallCharMethod(IntPtr, IntPtr, Span<jvalue>)

Calls a Java instance method defined by
methodID
, optionally passing an array of arguments (
args
) to the method.
public static char CallCharMethod(nint obj, nint methodID, Span<jvalue> args)

Parameters

The Java object on which to call the instance method.

methodID

The ID of the method to call.

An array of arguments to pass to the method.

Returns

Type

Description

charThe value returned by the Java method.

Remarks