Native 调用 JS 功能(NativeCallJS)
AndroidiOSPC端
如果您使用的是 Unreal Engine,请参见 Unreal Engine SDK 的 NativeCallJS。
Native 和网页 JS 的交互接口。
函数定义
public static void CallJS(string jsonJsParam);
入参说明
| 参数 | 类型 | 说明 |
|---|---|---|
| jsonJsParam | string | 要执行的 JavaScript |
代码示例
INTLAPI.CallJS("alert(navigator.userAgent);");