public async Task PopAsync() { await CrossTask.Yield(); if (_NavigationRoot.CanGoBack) { _NavigationRoot.GoBack(); } }
public async Task ShowModalAsync <TViewModel>(Action <TViewModel> config = null, bool?animated = null) where TViewModel : class { var viewModel = ServiceLocator.Get <TViewModel>(); await ShowModalCoreAsync(viewModel, async vm => { await CrossTask.Yield(); config?.Invoke(vm); }, animated); }
public async Task <bool> PushAsync <TViewModel>(Action <TViewModel> config = null) where TViewModel : class { var viewModel = ServiceLocator.Get <TViewModel>(); return(await PushCoreAsync(viewModel, async vm => { await CrossTask.Yield(); config?.Invoke(vm); })); }
public async Task PopModalAsync(bool?animated = null) { await CrossTask.Yield(); }