com.vaadin.flow.router.

Interface BeforeLeaveObserver

  • All Superinterfaces:

    BeforeLeaveHandler, Serializable

    Functional Interface:

    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface BeforeLeaveObserver
    extends BeforeLeaveHandler

    Any com.vaadin.ui.Component implementing this interface will be informed when they are being detached from the UI.

    During this phase there is the possibility to reroute to another navigation target or to postpone the navigation (to for instance get user input).

    Since:

    1.0

    Author:

    Vaadin Ltd