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.


fun <T : MapboxNavigationObserver> getObservers(clazz: Class<T>): List<T>

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