getObservers
fun <T : MapboxNavigationObserver> getObservers(kClass: KClass<T>): List<T>
Content copied to clipboard
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>
Content copied to clipboard
Java interoperability. Provides access to any registered observer instance. If no observers have been registered with this class type, an empty list is returned.