Beispiel #1
0
        protected void CloseCustomTabs()
        {
            UIThreadRunInvoker ri = new UIThreadRunInvoker(this);

            ri.BeginInvokeOnUIThread
            (
                () =>
            {
                StringBuilder sb1 = new StringBuilder();
                sb1.AppendLine($"If CustomTabs Login Screen does not close automatically");
                sb1.AppendLine($"close CustomTabs by navigating back to the app.");
                Toast.MakeText(this, sb1.ToString(), ToastLength.Short).Show();
            }
            );

            #if DEBUG
            StringBuilder sb = new StringBuilder();
            sb.AppendLine($"      CloseCustomTabs");
            System.Diagnostics.Debug.WriteLine(sb.ToString());
            #endif

            this.Finish();
            this.CloseCustomTabsProcessKill();

            return;
        }
        ///-------------------------------------------------------------------------------------------------
        #endregion
        protected void CloseCustomTabs()
        {
            UIThreadRunInvoker ri = new UIThreadRunInvoker(this);

            ri.BeginInvokeOnUIThread
            (
                () =>
            {
                string msg = CustomTabsConfiguration.CustomTabsClosingMessage;

                if (msg != null)
                {
                    Toast.MakeText(this, msg, ToastLength.Short).Show();
                }
            }
            );

            #if DEBUG
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.AppendLine($"      CloseCustomTabs");
            System.Diagnostics.Debug.WriteLine(sb.ToString());
            #endif

            this.Finish();
            //this.CloseCustomTabsProcessKill();

            return;
        }
        ///-------------------------------------------------------------------------------------------------

        protected void CloseCustomTabs()
        {
            var ri = new UIThreadRunInvoker(this);

            ri.BeginInvokeOnUIThread(() =>
            {
                string msg = WebAuthenticatorNativeBrowserActivity.CustomTabsClosingMessage;

                if (msg != null)
                {
                    Toast.MakeText(this, msg, ToastLength.Short).Show();
                }
            });

            System.Diagnostics.Debug.WriteLine("      CloseCustomTabs");

            this.Finish();
        }