Trip control

Introduction

Documentation is provided using Kotlin language.

Enable automatic trip detection

Make trip detection automatic or not.

Enable automatic trip detection

Driving.getInstance().enableTripDetection()

Disable automatic trip detection

Driving.getInstance().disableTripDetection()

Enable manual trip start and end

Trip detection is typically automatic, but you can control it manually.

Driving.getInstance().startTrip()
...
Driving.getInstance().endTrip()