addOnNavigationIntentEventListener

Adds an instance of OnNavigationIntentEventListener to the ReaderView.

If no listener has been added, the default behavior is to navigate to the intended location, only if the locator points to a ReaderDocument assigned to the ReaderView. Otherwise, nothing is done.

If at least one listener has been added, this default behavior is disabled. The default behavior is equal to:

if (navigationIntentEvent.internalNavigation) {
readerView.goTo(navigationIntentEvent.locator)
}