protected virtual Task <bool> CloseTabViewController(IMvxViewModel viewModel, MvxTabPresentationAttribute attribute) { if (TabBarViewController != null && TabBarViewController.CloseTabViewModel(viewModel)) { return(Task.FromResult(true)); } return(Task.FromResult(false)); }
protected virtual bool CloseTabViewController(IMvxViewModel viewModel, MvxTabPresentationAttribute attribute) { if (TabBarViewController != null && TabBarViewController.CloseTabViewModel(viewModel)) { return(true); } return(false); }
protected virtual ValueTask <bool> CloseTabViewController(IMvxViewModel viewModel, MvxTabPresentationAttribute?attribute) { if (TabBarViewController != null && TabBarViewController.CloseTabViewModel(viewModel)) { return(new ValueTask <bool>(true)); } return(new ValueTask <bool>(false)); }