RadarTripOptions

Objective-C

@interface RadarTripOptions : NSObject

Swift

class RadarTripOptions : NSObject

An options class used to configure trip tracking.

  • A stable unique ID for the trip.

    Declaration

    Objective-C

    @property (nonatomic, copy, nonnull) NSString *externalId;

    Swift

    var externalId: String { get set }
  • An optional set of custom key-value pairs for the trip.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSDictionary *metadata;

    Swift

    var metadata: [AnyHashable : Any]? { get set }
  • For trips with a destination, the tag of the destination geofence.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *destinationGeofenceTag;

    Swift

    var destinationGeofenceTag: String? { get set }
  • For trips with a destination, the external ID of the destination geofence.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *destinationGeofenceExternalId;

    Swift

    var destinationGeofenceExternalId: String? { get set }
  • The scheduled arrival time for the trip.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSDate *scheduledArrivalAt;

    Swift

    var scheduledArrivalAt: Date? { get set }
  • For trips with a destination, the travel mode.

    Declaration

    Objective-C

    @property (nonatomic) RadarRouteMode mode;

    Swift

    var mode: RadarRouteMode { get set }