/// <summary>
        /// Gets the platform  UI (Android - WebView).
        /// </summary>
        /// <returns>
        /// The platform Native UI (embeded/integrated Browser Control/Widget/View (WebView)).
        /// Android.Support.CustomTabs.CustomTabsIntent
        /// </returns>
        /// <see cref="https://components.xamarin.com/gettingstarted/xamandroidsupportcustomtabs"/>
        protected AuthenticateUIType GetPlatformUIEmbeddedBrowser()
        {
            // Embedded Browser - Deprecated
            UIKit.UINavigationController nc = null;
            nc = new UIKit.UINavigationController(new WebAuthenticatorController(this));

            AuthenticateUIType ui = nc;

            return(ui);
        }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (viewControllerBrowser != null)
            {
                viewControllerBrowser.Dispose();
                viewControllerBrowser = null;
            }

            if (viewControllerNowPlaying != null)
            {
                viewControllerNowPlaying.Dispose();
                viewControllerNowPlaying = null;
            }

            if (viewControllerRoomSource != null)
            {
                viewControllerRoomSource.Dispose();
                viewControllerRoomSource = null;
            }

            if (pageControl != null)
            {
                pageControl.Dispose();
                pageControl = null;
            }

            if (scrollView != null)
            {
                scrollView.Dispose();
                scrollView = null;
            }

            if (navigationControllerBrowser != null)
            {
                navigationControllerBrowser.Dispose();
                navigationControllerBrowser = null;
            }

            if (navigationControllerRoomSource != null)
            {
                navigationControllerRoomSource.Dispose();
                navigationControllerRoomSource = null;
            }
        }