Example #1
0
    public static void PreWebView(string url)
    {
#if UNITY_EDITOR
#else
        WebMediator.LoadUrl(url);
        WebMediator.Hide();
#endif
    }
Example #2
0
    void OnDisable()
    {
#if UNITY_IPHONE
        WebMediator.Hide();
        // Clear the state of the web view (by loading a blank page).
        WebMediator.LoadUrl("about:blank");
#elif UNITY_ANDROID
        if (isActivityWebview)
        {
            WebMediator.Hide();
            WebMediator.LoadUrl("about:blank");
        }
        else
        {
            WebMediator.HideWebView();
        }
#endif
    }
Example #3
0
 // Hide the web view.
 private void DeactivateWebView()
 {
     WebMediator.Hide();
     // Clear the state of the web view (by loading a blank page).
     WebMediator.LoadUrl("about:blank");
 }
 private void DeactivateWebView()
 {
     WebMediator.Hide();
     WebMediator.LoadUrl("about:blank");
 }