Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CallShortMethod

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 5 days ago

Definition

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

CallShortMethod(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 short CallShortMethod(nint obj, nint methodID, jvalue[] args)

Parameters


methodID


args

jvalue[]

Returns

Type

Description

short

Remarks

CallShortMethod(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 short CallShortMethod(nint obj, nint methodID, Span<jvalue> args)

Parameters

Returns

Type

Description

short

Remarks