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
| Parameters | Type | Explanation |
|---|---|---|
| jsonJsParam | string | JavaScript to be Executed |
Code Sample
INTLAPI.CallJS("alert(navigator.userAgent);");