addOnDestinationReachedListener

abstract fun addOnDestinationReachedListener(listener: OnDestinationReachedListener)

Adds an OnDestinationReachedListener which will inform about reaching destination the ArrivalDetectionEngine successfully detects arrival at the destination.

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.