Search…
UserActivity
Represents a user activity detected by the SDK detections.

UserActivity API

getActivityType()

1
UserActivityType getActivityType()
Copied!
Returns a UserActivityType enum representing the detected activity type.

getTripInfo()

1
@Nullable TripInfo getTripInfo()
Copied!
Returns a TripInfo object containing info about the ongoing trip. If the current activity is not a trip, this method will return null instead.

getStationaryInfo()

1
@Nullable StationaryInfo getStationaryInfo()
Copied!
Returns a StationaryInfo object containing info about the current stationary state. If the current activity is not a stationary, this method will return null instead.