addOnProgressUpdateListener

abstract fun addOnProgressUpdateListener(listener: OnProgressUpdateListener)

Adds an OnProgressUpdateListener which will inform about new progress along the route each time a location change occurs and the RouteProgressCalculationEngine successfully calculates it.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

listener

The listener to be registered.

Throws

if listener is already added.