GMSNavigationSpeedometerUIOptions 類別參考資料

GMSNavigationSpeedometerUIOptions 類別參考資料

總覽

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

您可以使用這個類別自訂速度快訊 UI,例如小幅和主要速度快訊的字型顏色和圖示背景。

你可以使用GMSNavigationSpeedometerUIOptions,針對不同嚴重程度自訂速度快訊 UI。您必須使用GMSNavigationSpeedAlertOptions定義每個速度快訊的觸發門檻。

GMSNavigationMutableSpeedometerUIOptions 繼承。

公開成員函式

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

成員函式說明文件

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

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

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

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

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

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