文档

Unity Engine

Unity Engine

CallObjectMethodUnsafe(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.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

CallObjectMethodUnsafe(IntPtr, IntPtr, jvalue*)

public static nint CallObjectMethodUnsafe(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

IntPtrA local reference to the Java object returned by the method.

Remarks

This method returns a reference to a \<tt\>java.lang.Object\</tt\>, or a subclass thereof.