Skip to main content

Native Invokes JS Function (NativeCallJS)

AndroidiOSPC

If you are using Unreal Engine, please refer to NativeCallJS in the Unreal Engine SDK.

Interface for Interaction between Native and Webpage JS.

Function definition​

public static void CallJS(string jsonJsParam);

Parameter Instructions​

ParametersTypeExplanation
jsonJsParamstringJavaScript to be Executed

Code Sample​

INTLAPI.CallJS("alert(navigator.userAgent);");