/// <inheritdoc /> public async Task ActivateAsync(bool activatedBefore) { if (!CanHandle(_remoteCommand)) { await NavigationProxy.PopModalAsync(); } }
public async Task TestPopModalWithInner() { var proxy = new NavigationProxy(); var inner = new NavigationTest(); proxy.Inner = inner; var child = new ContentPage { Content = new View() }; await proxy.PushModalAsync(child); await proxy.PopModalAsync(); Assert.True(inner.PoppedModal, "Pop was never called on the inner proxy item"); }
protected override Task <Page> OnPopModal(bool animated) { _navigationMonitoringTab.NavigationsFired.Add(nameof(OnPopModal)); return(_navigation.PopModalAsync(animated)); }