diff options
Diffstat (limited to 'Xamarin.Forms.Core/INavigation.cs')
-rw-r--r-- | Xamarin.Forms.Core/INavigation.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/INavigation.cs b/Xamarin.Forms.Core/INavigation.cs new file mode 100644 index 00000000..6ae5959d --- /dev/null +++ b/Xamarin.Forms.Core/INavigation.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Xamarin.Forms +{ + public interface INavigation + { + IReadOnlyList<Page> ModalStack { get; } + + IReadOnlyList<Page> NavigationStack { get; } + + void InsertPageBefore(Page page, Page before); + Task<Page> PopAsync(); + Task<Page> PopAsync(bool animated); + Task<Page> PopModalAsync(); + Task<Page> PopModalAsync(bool animated); + Task PopToRootAsync(); + Task PopToRootAsync(bool animated); + + Task PushAsync(Page page); + + Task PushAsync(Page page, bool animated); + Task PushModalAsync(Page page); + Task PushModalAsync(Page page, bool animated); + + void RemovePage(Page page); + } +}
\ No newline at end of file |