Class TrackingCameraBehavior.SpeedBasedZoomPolicyOptions
- Enclosing class:
- TrackingCameraBehavior
Configuration for computing zoom levels from speed thresholds defined per road classification.
For correct default initialization, use TrackingCameraBehavior.defaultSpeedBasedZoomPolicyOptions().
-
Field Summary
FieldsModifier and TypeFieldDescriptionMinimum time interval that must pass before the zoom level is allowed to switch to a new speed threshold.Defines, per road classification, how the zoom level should change in response to different vehicle speeds. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
delayBetweenThresholdChanges
Minimum time interval that must pass before the zoom level is allowed to switch to a new speed threshold. If
TrackingCameraBehavior.defaultSpeedBasedZoomPolicyOptions()is not used forTrackingCameraBehavior.SpeedBasedZoomPolicyOptions, it will benull. -
roadClassificationToSpeedThreshold
@NonNull public Map<RoadClassification,List<TrackingCameraBehavior.SpeedThreshold>> roadClassificationToSpeedThresholdDefines, per road classification, how the zoom level should change in response to different vehicle speeds. If
TrackingCameraBehavior.defaultSpeedBasedZoomPolicyOptions()is not used forTrackingCameraBehavior.SpeedBasedZoomPolicyOptions, it will be an empty map.
-
-
Constructor Details
-
SpeedBasedZoomPolicyOptions
public SpeedBasedZoomPolicyOptions()Creates a new instance.
Note: This is a beta feature; there maybe bugs and unexpected behavior. Related API's are subject to change without a deprecation process.
-