MBNNRouteAlternativesObserver.h 1.8 KB

1234567891011121314151617181920212223242526272829
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBNNRouteAlternative;
  4. @protocol MBNNRouteInterface;
  5. NS_SWIFT_NAME(RouteAlternativesObserver)
  6. @protocol MBNNRouteAlternativesObserver
  7. /**
  8. * This callback is invoked when controller get alternatives from router that changed from alternatives from last callback
  9. * or if we pass some route and fork point became behind us.
  10. * Discarded routes are not considered by comparison (see @return)
  11. * This callback will be invoked after setting new routes to the navigator.
  12. * Callback will be invoked with empty array if a single route has been passed to the navigator.
  13. * If no alternatives (All alternatives have been passed or router has returned only main route) callback will be invoked with empty array.
  14. * @param routeAlternatives new list of alternative routes. This is a full list with all alternatives except the manually deleted ones, using the returned array.
  15. * @param removed list of removed alternatives. These can be alternatives that have passed or alternatives that are no longer provided by the router.
  16. */
  17. - (void)onRouteAlternativesChangedForRouteAlternatives:(nonnull NSArray<MBNNRouteAlternative *> *)routeAlternatives
  18. removed:(nonnull NSArray<MBNNRouteAlternative *> *)removed;
  19. /**
  20. * This callback is invoked when current primary route has `Onboard` origin, and some incoming route is a sub-route of the primary route and it has `Online` origin.
  21. * @param onlinePrimaryRoute new incoming route, that has `Online` origin and is a sub-route of primary route.
  22. */
  23. - (void)onOnlinePrimaryRouteAvailableForOnlinePrimaryRoute:(nonnull id<MBNNRouteInterface>)onlinePrimaryRoute;
  24. /** This callback is invoked when an error occurs. */
  25. - (void)onErrorForMessage:(nonnull NSString *)message;
  26. @end