using System.Collections.Generic; using System.Threading.Tasks; namespace Xamarin.Forms { public interface INavigation { IReadOnlyList ModalStack { get; } IReadOnlyList NavigationStack { get; } void InsertPageBefore(Page page, Page before); Task PopAsync(); Task PopAsync(bool animated); Task PopModalAsync(); Task 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); } }