public override void OnBackPressed() { if (DrawerLayout != null && DrawerLayout.IsDrawerOpen(GravityCompat.Start)) { DrawerLayout.CloseDrawers(); return; } Android.Support.V4.App.Fragment currentFragment = SupportFragmentManager.FindFragmentById(Resource.Id.content_frame_new); IBackButtonListener listener = currentFragment as IBackButtonListener; if (listener != null) { listener.HandleBackPressed(); return; } CloseApplication(); }
public void RemoveListener(IBackButtonListener listener) { _listeners.Remove(listener); }
public void AddListener(IBackButtonListener listener) { _listeners.Add(listener); }
public void RemoveListener(IBackButtonListener listener) { }
public void AddListener(IBackButtonListener listener) { }