public async ValueTask<bool> ShowViewModel(MvxViewModelRequest request)
 {
     await ExecuteOnMainThreadAsync(async() =>
         {
             await _presenter.Show(request).ConfigureAwait(false);
         }).ConfigureAwait(false);
     return true;
 }
Example #2
0
        // thats an OVERLOAD!, just in case somebody reads way to fast ;)
        public bool ShowViewModel(MvxViewModelRequest request, bool viewModelShouldHandleError = true)
        {
            Action action = () => {
                MvxTrace.TaggedTrace("DroidNavigation", "Navigate requested");
                _presenter.Show(request);
            };

            return(RequestMainThreadAction(action));
        }
Example #3
0
        public override void Show(MvxViewModelRequest request)
        {
            if (request?.PresentationValues != null &&
                request.PresentationValues.ContainsKey("ClearBackStack"))
            {
                var intent = CreateIntentForRequest(request);
                intent.SetFlags(ActivityFlags.ClearTask | ActivityFlags.NewTask);

                base.Show(intent);
                return;
            }

            _innerPresenter.Show(request);
        }
 public bool ShowViewModel(MvxViewModelRequest request)
 {
     return(RequestMainThreadAction(() => _presenter.Show(request)));
 }
        public async Task <bool> ShowViewModel(MvxViewModelRequest request)
        {
            await ExecuteOnMainThreadAsync(() => _presenter.Show(request));

            return(true);
        }