GMSNavigationSpeedometerUIOptions クラス リファレンス

GMSNavigationSpeedometerUIOptions クラス リファレンス

概要

GMSNavigationSpeedAlertSeverity で示される、重大度に応じた速度アラートの UI 設定をカプセル化する不変のクラス。

このクラスを使用して、マイナーおよびメジャー速度アラートのフォントやアイコンの背景の色など、速度アラートの UI をカスタマイズできます。

GMSNavigationSpeedometerUIOptions を使用して、重大度に応じた速度アラート UI をカスタマイズします。GMSNavigationSpeedAlertOptions を使用して、速度アラートの重大度ごとにトリガーのしきい値を定義する必要があります。

GMSNavigationMutableSpeedometerUIOptions によって継承されます。

パブリック メンバー関数

(UIColor *)- textColorForSpeedAlertSeverity:lightingMode:
 指定された速度アラートの重大度と照明モードに使用する速度アラートのテキストの色を取得します。
(UIColor *)- backgroundColorForSpeedAlertSeverity:lightingMode:
 指定された速度アラートの重大度と照明モードに使用する速度アラート アイコンの背景色を取得します。

メンバー関数のドキュメント

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

指定された速度アラートの重大度と照明モードに使用する速度アラートのテキストの色を取得します。

@note これは、GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding に対して UIColor.clearColor を返します。

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

指定された速度アラートの重大度と照明モードに使用する速度アラート アイコンの背景色を取得します。

@note これは、GMSNavigationSpeedAlertSeverityUnknownGMSNavigationSpeedAlertSeverityNotSpeeding に対して UIColor.clearColor を返します。