public static void DismissByTapping(this IDismissable step, UIView view)
        {
            var tapGestureRecognizer = new UITapGestureRecognizer(() => step.Dismiss());

            view.AddGestureRecognizer(tapGestureRecognizer);

            addTooltipCloseIcon(view);
        }
Esempio n. 2
0
        public static void DismissByTapping(this IDismissable step, PopupWindow popupWindow, Action cleanup = null)
        {
            Ensure.Argument.IsNotNull(popupWindow, nameof(popupWindow));

            void OnDismiss(object sender, EventArgs args)
            {
                popupWindow.Dismiss();
                step.Dismiss();
                cleanup();
            }

            popupWindow.ContentView.Click += OnDismiss;
        }
Esempio n. 3
0
        public static void DismissByTapping(this IDismissable step, PopupWindow popupWindow, Action cleanup = null)
        {
            if (popupWindow == null)
            {
                return;
            }

            void OnDismiss(object sender, EventArgs args)
            {
                popupWindow.Dismiss();
                step.Dismiss();
                cleanup();
            }

            popupWindow.ContentView.Click += OnDismiss;
        }
Esempio n. 4
0
 public void Dismiss(IDismissable dismissable) => keyValueStorage.SetBool(onboardingPrefix + dismissable.Key, true);
Esempio n. 5
0
 public bool WasDismissed(IDismissable dismissable) => keyValueStorage.GetBool(onboardingPrefix + dismissable.Key);