RouteRefreshController
This class lets you manage route refreshes.
Functions
Link copied to clipboard
Pauses route refreshes. If route refreshes are already paused, this is a no-op. After this invocation, no route refreshes will be done, except for the ones that are requested explicitly via refreshRoutesImmediately. To resume route refreshes, invoke resumeRouteRefreshes.
Link copied to clipboard
fun registerRouteRefreshStateObserver(routeRefreshStatesObserver: RouteRefreshStatesObserver)
Content copied to clipboard
Register a RouteRefreshStatesObserver to be notified of Route refresh state changes.
Link copied to clipboard
Immediately refresh current navigation routes. Listen for refreshed routes using RoutesObserver.
Link copied to clipboard
Resumes route refreshes that were paused via pauseRouteRefreshes. If route refreshes are not paused, this is a no-op.
Link copied to clipboard
fun unregisterRouteRefreshStateObserver(routeRefreshStatesObserver: RouteRefreshStatesObserver)
Content copied to clipboard
Unregisters a RouteRefreshStatesObserver.