NativeCallJS
AndroidiOSWindows
If you were looking for the method for use with Unity, see NativeCallJS for Unity SDK.
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
Parameter | Type | Description |
---|---|---|
JsonJsParam | FString | The JavaScript to be executed |
Code sample
UINTLSDKAPI::CallJS("alert(navigator.userAgent);");