public async ValueTask <bool> ChangePresentation(MvxPresentationHint hint)
        {
            await ExecuteOnMainThreadAsync(async() =>
            {
                MvxLog.Instance.Trace("MacNavigation", "Change presentation requested");
                await _presenter.ChangePresentation(hint).ConfigureAwait(false);
            }).ConfigureAwait(false);

            return(true);
        }
        public bool ChangePresentation(MvxPresentationHint hint)
        {
            Action action = () =>
            {
                MvxTrace.TaggedTrace("MacNavigation", "Change presentation requested");
                _presenter.ChangePresentation(hint);
            };

            return(RequestMainThreadAction(action));
        }
        public async Task <bool> ChangePresentation(MvxPresentationHint hint)
        {
            Func <Task> action = () =>
            {
                MvxLog.Instance.Trace("MacNavigation", "Change presentation requested");
                return(_presenter.ChangePresentation(hint));
            };

            await ExecuteOnMainThreadAsync(action);

            return(true);
        }
Esempio n. 4
0
        public async Task <bool> ChangePresentation(MvxPresentationHint hint)
        {
            Func <Task> action = () =>
            {
                MvxLogHost.Default?.Log(LogLevel.Trace, "MacNavigation", "Change presentation requested");
                return(_presenter.ChangePresentation(hint));
            };

            await ExecuteOnMainThreadAsync(action);

            return(true);
        }