public static void Show(string url, CommonWebViewConfiguration configuration, UIView.UIViewDelegate callback) { Log.Debug("[CommonWebView] Show"); if (configuration.UseRotation) { UIViewRotation.Instance.SetRotation(COMMON_WEBVIEW, true); } else { UIViewRotation.Instance.SetRotation(COMMON_WEBVIEW, false); } CommonWebViewImpl.Show(url, configuration.ToJsonString(), callback); }
public CommonWebViewAndroid() { commonWebViewClass = new AndroidJavaClass("com.netmarble.unity.NMGCommonWebViewUnity"); uiviewCallback = new UIViewCallback(); version = commonWebViewClass.GetStatic <string>("VERSION"); location = commonWebViewClass.CallStatic <int>("nmg_commonWebView_getLocation"); CommonWebViewConfiguration configuration = new CommonWebViewConfiguration(); if (configuration.UseRotation) { UIViewRotation.Instance.SetRotation(location, true); } else { UIViewRotation.Instance.SetRotation(location, false); } }