Ejemplo n.º 1
0
        void ShowInner()
        {
            OnceInitializeAction?.Invoke();

            var payload = new LoadingDialogPayload(ContentView, _loadingView);

            var bundle = new Bundle();

            bundle.PutSerializable(LoadingDialogPayload.PayloadKey, payload);
            PlatformDialog.Arguments = bundle;

            PlatformDialog.Show(FragmentManager, LoadingImplementation.LoadingDialogTag);
        }
        public void Show(string message = null, bool isCurrentScope = false)
        {
            OnceInitializeAction?.Invoke();

            var payload = new LoadingDialogPayload(ContentView);

            var bundle = new Bundle();

            bundle.PutSerializable(LoadingDialogPayload.PayloadKey, payload);
            PlatformDialog.Arguments = bundle;

            _message           = message ?? _config.DefaultMessage;
            _messageLabel.Text = _message;

            PlatformDialog.Show(FragmentManager, LoadingImplementation.LoadingDialogTag);
        }
Ejemplo n.º 3
0
        void ShowInner(bool isCurrentScope)
        {
            IsRunning = true;

            OnceInitializeAction?.Invoke(isCurrentScope);

            if (IsCurrentScope.HasValue && IsCurrentScope != isCurrentScope)
            {
                SetOverlayConstrants(isCurrentScope);
            }

            IsCurrentScope = isCurrentScope;

            _loadingView.RunPresentationAnimation();

            UIView.Animate(0.25, () => OverlayView.Alpha = 1f, () => { });
        }
Ejemplo n.º 4
0
        public void Show(string message = null, bool isCurrentScope = false)
        {
            IsRunning = true;

            _message = message ?? _config.DefaultMessage;

            OnceInitializeAction?.Invoke(isCurrentScope);

            if (IsCurrentScope.HasValue && IsCurrentScope != isCurrentScope)
            {
                SetOverlayConstrants(isCurrentScope);
            }

            IsCurrentScope = isCurrentScope;

            _activitySpinner?.StartAnimating();

            UIView.Animate(0.25, () => OverlayView.Alpha = (float)_config.Opacity, () => { });
        }