GMSNavigationMutableSpeedometerUIOptions 类参考

GMSNavigationMutableSpeedometerUIOptions 类参考

概览

一个可变类,用于封装不同严重程度的速度提醒的界面配置,由 GMSNavigationSpeedAlertSeverity 表示。

继承 GMSNavigationSpeedometerUIOptions

公开成员函数

(void) - setTextColor:forSpeedAlertSeverity:lightingMode:
 设置速度警报文本的颜色,以用于指定的速度警报严重程度和照明模式。
(void) - setBackgroundColor:forSpeedAlertSeverity:lightingMode:
 设置速度警报图标的背景颜色,以用于指定的速度警报严重程度和照明模式。
(UIColor *)- textColorForSpeedAlertSeverity:lightingMode
 获取用于指定速度警报严重程度和照明模式的速度警报文本的颜色。
(UIColor *)- backgroundColorForSpeedAlertSeverity:lightingMode
 获取用于指定速度警报严重程度和照明模式的速度警报图标背景颜色。

成员函数文档

- (void) setTextColor: (UIColor *) 颜色
forSpeedAlertSeverity: (GMSNavigationSpeedAlertSeverity) speedAlertSeverity
lightingMode: (GMSNavigationLightingMode) lightingMode

设置速度警报文本的颜色,以用于指定的速度警报严重程度和照明模式。

@note 尝试设置 GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding 的颜色是一项空操作。

- (void) setBackgroundColor: (UIColor *) 颜色
forSpeedAlertSeverity: (GMSNavigationSpeedAlertSeverity) speedAlertSeverity
lightingMode: (GMSNavigationLightingMode) lightingMode

设置速度警报图标的背景颜色,以用于指定的速度警报严重程度和照明模式。

@note 尝试设置 GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding 的颜色是一项空操作。

- (UIColor *) textColorForSpeedAlertSeverity: (GMSNavigationSpeedAlertSeverity) speedAlertSeverity
lightingMode: (GMSNavigationLightingMode) lightingMode

获取用于指定速度警报严重程度和照明模式的速度警报文本的颜色。

@note 这会针对 GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding 返回 UIColor.clearColor。

- (UIColor *) backgroundColorForSpeedAlertSeverity: (GMSNavigationSpeedAlertSeverity) speedAlertSeverity
lightingMode: (GMSNavigationLightingMode) lightingMode

获取用于指定速度警报严重程度和照明模式的速度警报图标背景颜色。

@note 这会针对 GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding 返回 UIColor.clearColor。