APIs that enable user to call OpenHarmony JavaScript from Unity scripting (C#).
AcquireCallbackGCHandle | Forbid a C# function to be released during GC. |
CallFunction | Call a specified JavaScript function. |
CreateArrayBuffer | Create a JavaScript Arraybuffer. |
CreateArrayWithLength | Create a JavaScript array with length. |
CreateBoolean | Create a JavaScript boolean variable. |
CreateBooleanArray | Create a JavaScript boolean array. |
CreateDouble | Create a JavaScript Number variable. |
CreateDoubleArray | Create a JavaScript Number array. |
CreateFunction | Create a napi function. |
CreateInt | Create a JavaScript Number variable. |
CreateInt64 | Create a JavaScript BigInt varibale. |
CreateInt64Array | Create a JavaScript BigInt array. |
CreateIntArray | Create a JavaScript Number array. |
CreateNapiReference | Create a napi reference for napi value. |
CreateObject | Create a JavaScript object. |
CreateStringUTF8 | Create a JavaScript string with UTF8 encoding. |
CreateUInt | Create a JavaScript Number variable. |
CreateUInt64 | Create a JavaScript BigUInt varibale. |
DeleteNapiReference | Delete a napi reference. |
GetArrayBufferLength | Get the length of a byte array from a JavaScript array buffer. |
GetArrayElement | Get element with specified index from a JavaScript array. |
GetArrayLength | Get length of a JavaScript array. |
GetExportedNapiValue | Get registered napi value. |
GetNamedProperty | Get named property from a JavaScript object. |
GetNapiValueByNapiRef | Get napi value from napi reference. |
GetTypedArrayInfo | Get typedarray info form a JavaScript object. |
GetValueBoolean | Get JavaScript boolean value. |
GetValueDouble | Get JavaScript double value. |
GetValueFromArrayBuffer | Get the value of a byte array from a JavaScript array buffer. |
GetValueInt | Get JavaScript int value. |
GetValueInt64 | Get JavaScript int64 value. |
GetValueStringUTF8 | Get JavaScript string value with UTF8 encoding. |
GetValueUInt | Get JavaScript uint value. |
GetValueUInt64 | Get JavaScript uint64 value. |
IsArray | Check if the Object passed in is an array. |
IsArrayBuffer | Check if the Object passed in is an array buffer. |
IsTypedArray | Check if the Object passed in is an typedarray. |
ReleaseCallbackGCHandle | Release a GC handle. |
SetArrayElement | Set value with specified index of a JavaScript array. |
SetNamedProperty | Set a named property of a JavaScript object. |
SetValueToArrayBuffer | Set the value of a byte array into a JavaScript array buffer. |
ToBooleanArray | Convert a C# boolean array to JavaScript side. |
ToDoubleArray | Convert a C# double array to JavaScript side. |
ToInt64Array | Convert a C# int64 array to JavaScript side. |
ToIntArray | Convert a C# int array to JavaScript side. |
ToObjectArray | Convert a C# OpenHarmonyJSObject array to JavaScript side. |
ToStringArray | Convert a C# string array to JavaScript side. |
TypeOf | Extract type of a JavaScript object. |