NewString
Constructs a new \<tt\>java.lang.String\</tt\> object from an array of Unicode characters.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
NewString(string)
Constructs a new \<tt\>java.lang.String\</tt\> object from an array of Unicode characters.
public static nint NewString(string chars)
Parameters
The array of Unicode characters to construct the string from.
Returns
Type | Description |
|---|---|
| IntPtr | A local reference to the newly constructed java.lang.String object. |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)
NewString(char[])
Constructs a new \<tt\>java.lang.String\</tt\> object from an array of Unicode characters.
public static nint NewString(char[] chars)
Parameters
The array of Unicode characters to construct the string from.
Returns
Type | Description |
|---|---|
| IntPtr | A local reference to the newly constructed java.lang.String object. |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)