Beispiel #1
0
        public void OnShowcaseDetached(MaterialShowcaseView showcaseView, bool wasDismissed)
        {
            showcaseView.SetDetachedListener(null);

            /**
             * We're only interested if the showcase was purposefully dismissed
             */
            if (!wasDismissed)
            {
                return;
            }
            _onItemDismissedListener?.Invoke(showcaseView, (int)_sequencePosition);

            /**
             * If so, update the prefsManager so we can potentially resume this sequence in the future
             */
            if (_prefsManager != null)
            {
                _sequencePosition++;
                _prefsManager.SetSequenceStatus(_sequencePosition);
            }

            ShowNextItem();
        }