Overview
An immutable class that defines triggering thresholds for different severities of speed alerts, represented by GMSNavigationSpeedAlertSeverity.
You can use this to customize the speed alert triggering thresholds in percentage for both minor and major alerts, and customize the time based triggering threshold for major speed alert.
The speed alerts triggered by corresponding thresholds from this GMSNavigationSpeedAlertOptions have UI customized in GMSNavigationSpeedometerUIOptions if set.
Inherited by GMSNavigationMutableSpeedAlertOptions.
Public Member Functions | |
(CGFloat) | - thresholdPercentageForSpeedAlertSeverity: |
Gets the speed alert threshold (as a percentage) for the specific GMSNavigationSpeedAlertSeverity. | |
Properties | |
NSTimeInterval | severityUpgradeDurationSeconds |
The duration threshold controls the speed alert severity upgrade. |
Member Function Documentation
- (CGFloat) thresholdPercentageForSpeedAlertSeverity: | (GMSNavigationSpeedAlertSeverity) | speedAlertSeverity |
Gets the speed alert threshold (as a percentage) for the specific GMSNavigationSpeedAlertSeverity.
A value of 0.0 represents 0%, and 1.0 represents 100%. A negative value indicates no threshold being set for that speedingType.
Property Documentation
- (NSTimeInterval) severityUpgradeDurationSeconds [read, assign] |
The duration threshold controls the speed alert severity upgrade.
A major speed alert is triggered when the speed exceeds the minor speed alert threshold for more than the given number of seconds.
Implemented in GMSNavigationMutableSpeedAlertOptions.