TransitionsToStateMapper

class TransitionsToStateMapper

Class aims to keep the track of ongoing activities in order to return the most important from those, that currently active. E.g. if drive happens and car stops at traffic light stop enter happens without drive exit, but we still want to report drive to backend.

Constructors

Link copied to clipboard
fun TransitionsToStateMapper()

Functions

Link copied to clipboard
fun onEnter(activityType: ActivityType): ActivityType
Link copied to clipboard
fun onExit(activityType: ActivityType): ActivityType