Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using ManageGo.Core.ViewModels;
  5.  
  6. namespace ManageGo.Core.Services
  7. {
  8. public interface INavigationService
  9. {
  10. void RegisterViewModels(System.Reflection.Assembly asm);
  11. void Register(Type viewModelType, Type viewType);
  12.  
  13. Task PopAsync();
  14. Task PopModalAsync();
  15. Task PopPopupAsync(bool animate = true);
  16. Task PushAsync(BaseNavigationViewModel viewModel);
  17. Task PushAsync<T>(Action<T> initialize = null) where T : BaseNavigationViewModel;
  18. Task PushModalAsync<T>(Action<T> initialize = null) where T : BaseNavigationViewModel;
  19. Task PushModalAsync(BaseNavigationViewModel viewModel);
  20. Task PushPopupAsync(BaseNavigationViewModel viewModel, bool animate = true);
  21. Task PopToRootAsync(bool animate);
  22.  
  23. Task SetDetailView<T>(Action<T> initialize = null) where T : BaseNavigationViewModel;
  24. Task SetDetailView(BaseNavigationViewModel viewModel, bool allowSamePageSet = false);
  25.  
  26. void SetRootView(BaseNavigationViewModel viewModel, bool withNavigationEnabled = true);
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement