AI-generated Key Takeaways
-
GMSNavigationSpeedAlertSeverityis an enum defining different levels of speed alerts during navigation. -
It includes four severity levels:
Unknown,NotSpeeding,Minor, andMajor. -
Unknownindicates that either the current speed or the speed limit is undetermined. -
NotSpeedingsignifies that the current speed is within the allowed limit. -
MinorandMajorrepresent increasing levels of speeding severity, alerting the user to potential risks.
GMSNavigationSpeedAlertSeverity
NS_ENUM(NSInteger, GMSNavigationSpeedAlertSeverity) {
/** Either speed or speed limit could not be determined. */
GMSNavigationSpeedAlertSeverityUnknown = -2,
/** No speeding is occurring. */
GMSNavigationSpeedAlertSeverityNotSpeeding = -1,
/** Minor speed alert. */
GMSNavigationSpeedAlertSeverityMinor = 0,
/** Major speed alert. */
GMSNavigationSpeedAlertSeverityMajor,
}-
Either speed or speed limit could not be determined.
Declaration
Swift
case unknown = -2Objective-C
GMSNavigationSpeedAlertSeverityUnknown = -2 -
No speeding is occurring.
Declaration
Swift
case notSpeeding = -1Objective-C
GMSNavigationSpeedAlertSeverityNotSpeeding = -1 -
Minor speed alert.
Declaration
Swift
case minor = 0Objective-C
GMSNavigationSpeedAlertSeverityMinor = 0 -
Major speed alert.
Declaration
Swift
case major = 1Objective-C
GMSNavigationSpeedAlertSeverityMajor