Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Declaration
public static jvalue[] CreateJNIArgArray(Object[] args);
Parameters
| Parameter |
Description |
| args |
An array of objects that should be converted to Call parameters. |
Returns
jvalue[]
The converted arguments, ready to pass to a Call method.
Description
Creates the parameter array to be used as argument list when invoking Java code through CallMethod() in AndroidJNI.
Declaration
public static void CreateJNIArgArray(Object[] args,
Span<jvalue> jniArgs);
Parameters
| Parameter |
Description |
| args |
An array of objects to convert to Call parameters. |
| jniArgs |
The buffer to write the converted arguments into. |
Description
Creates the parameter array to be used as argument list when invoking Java code through CallMethod() in AndroidJNI, writing into the given buffer instead of allocating a new array.