getNavigationState

Retrieves the information about the navigation state:

Note: in most cases calling observeNavigationState instead of getNavigationState makes much more sense (unless one needs to know the state just once and all its frequent subsequent changes are irrelevant).