public override UIViewController[] PopToRootViewController(bool animated) { UIViewController[] vcs = null; if (VisibleViewController != ViewControllers.FirstOrDefault()) { regularPop = TopViewController != ViewControllers.FirstOrDefault(); vcs = base.PopToRootViewController(animated); } return(vcs); }
void handleUpdatedSelected(object sender, EventArgs e) { refreshForUpdatedSelected(); var current = ViewControllers.FirstOrDefault(); if (current != null) { Analytics.TrackPageViewStart(current, childPageName(current), WuClient.Shared.Selected); } }
async partial void closeClicked(NSObject sender) { updateToolbarButtons(true); await DismissViewControllerAsync(true); var current = ViewControllers.FirstOrDefault(); if (current != null) { Analytics.TrackPageViewStart(current, childPageName(current), WuClient.Shared.Selected); } }
public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender) { updateToolbarButtons(false); if (segue.Identifier.Equals("locationsSegue", StringComparison.OrdinalIgnoreCase)) { var current = ViewControllers.FirstOrDefault(); if (current != null) { Analytics.TrackPageViewEnd(ViewControllers.FirstOrDefault(), WuClient.Shared.Selected); } } }