If the view implements CanConfirmNavigation or ProvidesConfirmNavigation, Brix installs a history interceptor on activation to prompt before leaving when isConfirmNavigation() is true.
@BrixPresenter
@BrixRoute("dashboard")
@BrixSlot(BrixSlots.BRIX_BODY_SLOT)
public class DashboardPresenter extends Presenter<DashboardView> {
// No manual view binding needed
}
@UiView
public class DashboardView extends BrixView<Element, DashboardHandlers>
implements DashboardPresenter.DashboardView {
@Handlers DashboardHandlers handlers;
}
confirmNavigation decides whether to continue.onConfirmed() / onCanceled() handlers to control navigation.