NativeCallJS
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see NativeCallJS for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see NativeCallJS for Unreal Engine SDK.
CallJS is the communication interface between JS code and Native code.
Function definition
public static void CallJS(string jsonJsParam);
Input parameters
Parameter | Type | Description |
---|---|---|
jsonJsParam | string | The JavaScript to be executed |
Code sample
INTLAPI.CallJS("alert(navigator.userAgent);");