navigationUIEnabledPreference property
Determines the initial visibility of the navigation UI on map initialization.
If not set, by default set to NavigationUIEnabledPreference.automatic, meaning the navigation UI gets enabled if the navigation session has already been successfully started.
If set to NavigationUIEnabledPreference.disabled, navigation view initially displays a classic map view.
Implementation
final NavigationUIEnabledPreference navigationUIEnabledPreference;