We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.router.
Package com.vaadin.flow.router
Interface BeforeLeaveObserver
All Superinterfaces:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Any attached component implementing this interface will receive an event before leaving the current navigation state.
During this event phase there is the possibility to reroute to another navigation target or to postpone the navigation (to for instance get user input).
If a route target is left for reasons not under the control of the navigator
(for instance using
Page.setLocation(URI)
, typing a URL
into the address bar, or closing the browser), listeners are not called.
Since:
1.0
Author:
Vaadin Ltd
-
Method Summary
Methods inherited from interface com.vaadin.flow.router.internal.BeforeLeaveHandler
beforeLeave