getTripSessionState

fun getTripSessionState(): TripSessionState

Return the current TripSession's state. The state is TripSessionState.STARTED when the session is active, running a foreground service and requesting and returning location updates. The state is TripSessionState.STOPPED when the session is inactive.

Return

current TripSessionState

See also