GMSNavigationMutableSpeedometerUIOptions 類別參考資料

GMSNavigationMutableSpeedometerUIOptions 類別參考資料

總覽

可變動類別,包含速度快訊不同嚴重性的 UI 設定,以 GMSNavigationSpeedAlertSeverity 表示。

繼承GMSNavigationSpeedometerUIOptions

公開成員函式

(void) - setTextColor:forSpeedAlertSeverity:lightingMode:
 設定速度快訊文字的顏色,用於指定速度快訊嚴重程度和亮度模式。
(void) - setBackgroundColor:forSpeedAlertSeverity:lightingMode:
 設定速度快訊圖示背景顏色,用於指定速度快訊嚴重性和亮度模式。
(UIColor *)- textColorForSpeedAlertSeverity:lightingMode:
 取得指定速度快訊嚴重程度和亮度模式時,要使用的速度快訊文字的顏色。
(UIColor *)- backgroundColorForSpeedAlertSeverity:lightingMode:
 取得速度快訊圖示的背景顏色,以便用於指定速度快訊嚴重性和亮度模式。

成員函式說明文件

- (void) setTextColor: (UIColor *) color [顏色]
forSpeedAlertS 嚴重程度: (GMSNavigationSpeedAlertSeverity) speedAlertSeverity
LightMode: (GMSNavigationLightingMode) lightingMode

設定速度快訊文字的顏色,用於指定速度快訊嚴重程度和亮度模式。

@note 嘗試設定 GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding 的顏色屬於免人工管理。

- (void) setBackgroundColor: (UIColor *) color [顏色]
forSpeedAlertS 嚴重程度: (GMSNavigationSpeedAlertSeverity) speedAlertSeverity
LightMode: (GMSNavigationLightingMode) lightingMode

設定速度快訊圖示背景顏色,用於指定速度快訊嚴重性和亮度模式。

@note 嘗試設定 GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding 的顏色屬於免人工管理。

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

取得指定速度快訊嚴重程度和亮度模式時,要使用的速度快訊文字的顏色。

@note 這會傳回 GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding 的 UIColor.clearColor。

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

取得速度快訊圖示的背景顏色,以便用於指定速度快訊嚴重性和亮度模式。

@note 這會傳回 GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding 的 UIColor.clearColor。