Camera Defaults
When navigation is getting into a particular state the camera has some build in behavior. You may control that behavior with this API.
Every NavigationState
has corresponding default camera values represented by SimpleDefaults
object in DashCameraConfig
.
Filling available properties in SimpleDefaults
object you are able to influence camera behavior during such transition.
Dash.init(
applicationContext = applicationContext,
accessToken = getString(R.string.mapbox_access_token)
) {
camera {
freeDriveDefaults = SimpleDefaults(zoom = 15.0, pitch = 45.0)
}
}
この{Type}は役に立ちましたか?