Exemple #1
0
 public bool RequestNavigate(MvxShowViewModelRequest request)
 {
     Action action = () =>
                         {
                             MvxTrace.TaggedTrace("MacNavigation", "Navigate requested");
                             _presenter.Show(request);
                         };
     return RequestMainThreadAction(action);
 }
        public async ValueTask <bool> ShowViewModel(MvxViewModelRequest request)
        {
            await ExecuteOnMainThreadAsync(async() =>
            {
                MvxLog.Instance.Trace("MacNavigation", "Navigate requested");
                await _presenter.Show(request).ConfigureAwait(false);
            }).ConfigureAwait(false);

            return(true);
        }
        public async Task <bool> ShowViewModel(MvxViewModelRequest request)
        {
            Func <Task> action = () =>
            {
                MvxLog.Instance.Trace("MacNavigation", "Navigate requested");
                return(_presenter.Show(request));
            };

            await ExecuteOnMainThreadAsync(action);

            return(true);
        }
Exemple #4
0
        public async Task <bool> ShowViewModel(MvxViewModelRequest request)
        {
            Func <Task> action = () =>
            {
                MvxLogHost.Default?.Log(LogLevel.Trace, "MacNavigation", "Navigate requested");
                return(_presenter.Show(request));
            };

            await ExecuteOnMainThreadAsync(action);

            return(true);
        }