Skip to main content

NativeCallJS

AndroidiOSWindows
If you were looking for the method for use with Unity, see NativeCallJS for Unity SDK.

CallJS is the communication interface between JS code and Native code.

Function definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool CallJS(const FString JsonJsParam);

Input parameters

ParameterTypeDescription
JsonJsParamFStringThe JavaScript to be executed

Code sample

UINTLSDKAPI::CallJS("alert(navigator.userAgent);");