@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"])
fun startTripSession(withForegroundService: Boolean = true)

Starts listening for location updates and enters an Active Guidance state if there's a primary route available or a Free Drive state otherwise.

Starting a session can have an impact on your usage costs. Refer to the pricing documentation to learn more.

See also



Boolean if set to false, foreground service will not be started and no notifications will be rendered, and no location updates will be available while the app is in the background. Default value is set to true.