Constants

The following constants are available globally.

  • Directions Error Domain

    Declaration

    Objective-C

    extern NSString *const _Nonnull kSPDirectionsErrorDomain

    Swift

    let kSPDirectionsErrorDomain: String
  • Listen to this event to receive notifications when geofences are triggered. Notification has property ‘object’ is of type SPGeofenceEvent

    Declaration

    Objective-C

    extern NSString *const _Nonnull kSPGeofenceEventNotification

    Swift

    static let spGeofenceEvent: NSNotification.Name
  • Geofence Error Domain

    Declaration

    Objective-C

    extern NSString *const _Nonnull kSPGeofenceErrorDomain

    Swift

    let kSPGeofenceErrorDomain: String
  • SPMapView Error Domain

    This error domain may be returned from the following MGLMapViewDelegate method:

    ‘mapView:didFailToLocateUserWithError:’

    See enum SPMapViewErrorCode for possible error types.

    Declaration

    Objective-C

    extern NSString *const _Nonnull kSPMapViewErrorDomain

    Swift

    let kSPMapViewErrorDomain: String
  • Route step action

    Declaration

    Objective-C

    extern NSString *const _Nonnull kSPRouteStepAction

    Swift

    let kSPRouteStepAction: String
  • Route step action properties

    Declaration

    Objective-C

    extern NSString *const _Nonnull kSPRouteStepActionProperties

    Swift

    let kSPRouteStepActionProperties: String
  • Route step debug text

    Declaration

    Objective-C

    extern NSString *const _Nonnull kSPRouteStepDebugText

    Swift

    let kSPRouteStepDebugText: String