文档

Unity Engine

Unity Engine

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

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule
public static string CallStringMethodUnsafe(IntPtr obj, IntPtr methodID, jvalue* args)

Parameters


methodID


args

jvalue*

Returns

Type

Description

string

Remarks

This is a convenience function that calls CallObjectMethod() with the same parameters, but creates a managed string from the result.
Additional Resources: AndroidJNI.CallObjectMethodUnsafe.