Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Definition

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

CallStringMethodUnsafe(IntPtr, IntPtr, jvalue*)

public static string CallStringMethodUnsafe(nint obj, nint 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.