public static void PreWebView(string url) { #if UNITY_EDITOR #else WebMediator.LoadUrl(url); WebMediator.Hide(); #endif }
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 }
// 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"); }