示例#1
0
        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);
            }
        }
示例#2
0
        public ForumUIViewAndroid()
        {
            androidClass  = new AndroidJavaClass("com.netmarble.unity.NMGForumUnity");
            forumCallback = new UIViewCallback();

            AndroidJavaClass forumClass = new AndroidJavaClass("com.netmarble.forum.view.ForumWebView");

            location = forumClass.GetStatic <int>("FORUM_WEBVIEW");

            ForumViewConfiguration configuration = new ForumViewConfiguration();

            if (configuration.UseRotation)
            {
                UIViewRotation.Instance.SetRotation(location, true);
            }
            else
            {
                UIViewRotation.Instance.SetRotation(location, false);
            }
        }
示例#3
0
 public UIViewiOS()
 {
     uiviewCallback = new UIViewCallback();
 }
 public CommonWebViewiOS()
 {
     uiviewCallback = new UIViewCallback();
     version        = Marshal.PtrToStringAuto(nmg_commonWebView_version());
     location       = nmg_commonWebView_getLocation();
 }
 public UIViewAndroid()
 {
     uiviewAndroidClass = new AndroidJavaClass("com.netmarble.unity.NMGUIViewUnity");
     uiviewCallback     = new UIViewCallback();
 }
示例#6
0
 public ForumUIViewiOS()
 {
     forumCallback = new UIViewCallback();
 }