ReplanningRetryPolicy

public protocol ReplanningRetryPolicy

Specifies how to handle requests which failed during replanning of a Route.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Specifies if replan should be retried. The method will be called on the private queue.

    Declaration

    Swift

    func shouldRetry(attempt: Int) -> Bool

    Parameters

    attempt

    Attempt number.

    Return Value

    true if replan should be retried

  • Specifies if replan should be retried. The method will be called on the private queue.

    Declaration

    Swift

    func retryDelay(forAttempt attempt: Int) -> DispatchTimeInterval

    Parameters

    forAttempt

    Attempt number.

    Return Value

    delay for retry attempt