SENTTransportEvent

Represents a duration of the time when the user was in transport.

@interface SENTTransportEvent : SENTTimelineEvent <NSSecureCoding>

distanceInMeters

Returns the distance travelled during the transport, in meters. If distance cannot be computed, then returns nil.

@property (nonatomic, strong, readonly, nullable) NSNumber *distanceInMeters NS_REFINED_FOR_SWIFT;

transportMode

Returns the mode of transportation as SENTTimelineTransportMode.

@property (nonatomic, assign) SENTTimelineTransportMode transportMode;

waypoints

Returns the waypoints collected during the transport.

@property (nonatomic, strong, readonly) NSArray<SENTWaypoint *> *waypoints;

isEqualToTransportEvent:

- (BOOL)isEqualToTransportEvent:(SENTTransportEvent *)transportEvent;

Last updated