Real time trip events

Introduction

Documentation is provided using Kotlin language.

Real time events

Fill in the folowing functions when you want to be updated with real-time events

class DrivingEventListener: Driving.EventListener {  
 override fun onEventStarted(event: TripEvent) { }
 override fun onTripStarted(timestamp: Double) {}
 override fun onTripFinished(timestamp: Double) {}
  ...
}
Driving.getInstance().addEventListener(drivingEventsListener)
Driving.getInstance().removeEventListener(drivingEventsListener)