UniWebView笔记

访问

Load
Reload
GoBack

Android禁用返回键

事件响应

Html

X

C#

        webTodayFee.OnMessageReceived += (view, message) => {
            AppUtil.instance.SceneLog(message.RawMessage);
            if (message.Args["action"] == "close_today_fee_charts")
            {
                HideWeb(view);
            }
        };

另一种

    webTodayFee.OnMessageReceived += OnMessageReceived;
    void OnMessageReceived(UniWebView view,  UniWebViewMessage message)
    {
        Debug.Log(message.RawMessage);
        AppUtil.instance.SceneLog(message.RawMessage);
        if (message.Args["action"] == "close_today_fee_charts")
        {
            HideWeb(view);
        }

    }

转载于:https://www.cnblogs.com/cosmicy/p/9764570.html

你可能感兴趣的:(UniWebView笔记)