TransportEvent

open class TransportEvent : Event

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

Constructors

Link copied to clipboard
constructor(@NonNull id: String, @NonNull startTime: DateTime, @Nullable endTime: DateTime, @NonNull transportMode: TransportMode, @NonNull waypoints: List<Waypoint>, @Nullable distanceTravelled: Integer, @NonNull transportTags: Map<String, String>)
constructor(@NonNull id: String, @NonNull startTime: DateTime, @Nullable endTime: DateTime, @NonNull lastUpdateTime: DateTime, @NonNull transportMode: TransportMode, @NonNull waypoints: List<Waypoint>, @Nullable distanceTravelled: Integer, @NonNull transportTags: Map<String, String>)
constructor(@NonNull id: String, @NonNull startTime: DateTime, @Nullable endTime: DateTime, @NonNull lastUpdateTime: DateTime, @NonNull transportMode: TransportMode, @NonNull waypoints: List<Waypoint>, @Nullable distanceTravelled: Integer, @NonNull transportTags: Map<String, String>, @NonNull occupantRole: OccupantRole)
constructor(@NonNull id: String, @NonNull startTime: DateTime, @Nullable endTime: DateTime, @NonNull lastUpdateTime: DateTime, @NonNull transportMode: TransportMode, @NonNull waypoints: List<Waypoint>, @Nullable distanceTravelled: Integer, @NonNull transportTags: Map<String, String>, @NonNull occupantRole: OccupantRole, isProvisional: Boolean)
constructor(@NonNull in: Parcel)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Link copied to clipboard
Returns the distance travelled during the transport, in meters.
Link copied to clipboard
Returns the event type.
Link copied to clipboard
Returns the detected user occupant role.
Link copied to clipboard
Returns the set of tags that you have previously set (if any) for this transport.
Link copied to clipboard
Returns the mode of transportation.
Link copied to clipboard
Returns the waypoints collected during the transport.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun writeToParcel(@NonNull dest: Parcel, flags: Int)