Native Invokes JS Function (NativeCallJS)
Interface for Interaction between Native and Webpage JS.
Function Definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool CallJS(const FString JsonJsParam);
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| JsonJsParam | FString | JavaScript to be Executed |
Code Sample
UINTLSDKAPI::CallJS("alert(navigator.userAgent);");