addRouteLifecycleListener

Adds a lifecycle listener to the current route. onRouteStarted() is called immediately. The listener is automatically removed when the route is destroyed.