public void initialize(OnNavigationReadyCallback onNavigationReadyCallback) {
    this.onNavigationReadyCallback = onNavigationReadyCallback;
    if (!isMapInitialized) {
      mapView.getMapAsync(this);
    } else {
      onNavigationReadyCallback.onNavigationReady(navigationViewModel.isRunning());
    }
  }
public void initialize ( OnNavigationReadyCallback onNavigationReadyCallback ) { this . onNavigationReadyCallback = onNavigationReadyCallback ; if ( ! isMapInitialized ) { mapView . getMapAsync ( this ) ; } else { onNavigationReadyCallback . onNavigationReady ( navigationViewModel . isRunning ( ) ) ; } }
Should be called after {@link NavigationView#onCreate(Bundle)}.
<p>
This method adds the {@link OnNavigationReadyCallback},
which will fire the ready events for this view.

@param onNavigationReadyCallback to be set to this view