Type Definitions

The following type definitions are available globally.

  • MQNavigationRoutePosition Type used to represent a position on route

    Declaration

    Objective-C

    typedef double MQNavigationRoutePosition

    Swift

    typealias MQNavigationRoutePosition = Double
  • Completion block returning a set of routes or an error

    Declaration

    Objective-C

    typedef void (^MQRouteResponseCompletionBlock)(NSArray<MQRoute *> *_Nullable,
                                                   NSError *_Nullable)

    Swift

    typealias MQRouteResponseCompletionBlock = ([MQRoute]?, Error?) -> Void

    Parameters

    routeResponse

    optional Array of routes

    error

    optional Error object