removeOffRouteListener

This removes a specific off route listener by passing in the instance of it or you can pass in null to remove all the listeners. When .onDestroy is called, all listeners get removed automatically, removing the requirement for developers to manually handle this.

If the listener you are trying to remove does not exist in the list, a warning will be printed in the log.

Since

0.2.0

Parameters

offRouteListener

an implementation of OffRouteListener which currently exist in the offRouteListener list

See also