getObservers

fun <T : MapboxNavigationObserver> getObservers(kClass: KClass<T>): List<T>

Provides access to any registered observer instance. If no observers have been registered with this class type, an empty list is returned.