ActivityTransition

Class to detect if a device is entering/exiting a vehicle, or stopping moving. This is used to adjust the contents of call outs and when they are made.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val transition: StateFlow<ActivityTransitionEvent>

Functions

Link copied to clipboard
fun onActivityTransitionEvent(event: ActivityTransitionEvent)

onActivityTransitionEvent is where ActivityTransitionEvent percolate up to after they have been received by the ActivityTransitionReceiver.

Link copied to clipboard
fun startVehicleActivityTracking(context: Context, onSuccess: () -> Unit = { }, onFailure: (String) -> Unit = { })
Link copied to clipboard