コード例 #1
0
 public bool RequestNavigate(MvxShowViewModelRequest request)
 {
     Action action = () =>
                         {
                             MvxTrace.TaggedTrace("MacNavigation", "Navigate requested");
                             _presenter.Show(request);
                         };
     return RequestMainThreadAction(action);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #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);
        }