RoutePreviewOptions

public struct RoutePreviewOptions

Customization options for the routes(s) preview using RoutePreviewViewController banner.

  • RouteResponse object, that contains an array of the Route objects, details about which will be presented.

    Declaration

    Swift

    public let routeResponse: RouteResponse
  • The index of the route within the original RouteResponse object.

    Declaration

    Swift

    public let routeIndex: Int
  • Initializes a RoutePreviewOptions struct.

    • paramater routeResponse: RouteResponse object, that contains an array of the Route objects, details about which will be presented.
    • paramater routeIndex: The index of the route within the original RouteResponse object.

    Declaration

    Swift

    public init(routeResponse: RouteResponse, routeIndex: Int = 0)