RouteObjectDelegate

Objective-C

@protocol RouteObjectDelegate <NSObject>

Swift

protocol RouteObjectDelegate

A set of delegate methods for route object.

  • Notifies the delegate that route traffic events were updated. @details This notification is sent when there is a change in traffic affecting the route.

    Declaration

    Objective-C

    - (void)routeObject:(nonnull RouteObject *)route
        onTrafficEventsUpdated:(int)delayDiff;

    Swift

    optional func routeObject(_ route: RouteObject, onTrafficEventsUpdated delayDiff: Int32)

    Parameters

    route

    The route informing the delegate of this event.

    delayDiff

    Difference between new delay and old delay calculated only for the remaining travel distance.

  • Notifies the delegate that traffic events along route were verified.

    Declaration

    Objective-C

    - (void)routeObject:(nonnull RouteObject *)route
        onTrafficEventsAlongRoute:(BOOL)checked;

    Swift

    optional func routeObject(_ route: RouteObject, onTrafficEventsAlongRoute checked: Any!)

    Parameters

    route

    The route informing the delegate of this event.

    checked

    The verified status.