initialize

open fun initialize(onNavigationReadyCallback: OnNavigationReadyCallback)

Should be called after onCreate.

This method adds the OnNavigationReadyCallback,which will fire the ready events for this view.

Parameters

onNavigationReadyCallback

to be set to this view

open fun initialize(onNavigationReadyCallback: OnNavigationReadyCallback, initialMapCameraPosition: CameraPosition)

Should be called after onCreate.

This method adds the OnNavigationReadyCallback,which will fire the ready events for this view.

This method also accepts a CameraPosition that will be set as soon as the map isready. Note, this position is ignored during a configuration change in favor of the last known map position.

Parameters

onNavigationReadyCallback

to be set to this view

initialMapCameraPosition

to be shown once the map is ready