current

fun current(): MapboxNavigation?

MapboxNavigation has functions that do not require observation streams. This function allows you to get the current instance to call those functions.

For example, you do not need to registerObserver in order to call MapboxNavigation.postUserFeedback or MapboxNavigation.setRoutes.