SpeedAlertOptions

パブリック クラス SpeedAlertOptions extensions オブジェクト

SpeedAlertSeverity で表される速度アラートのさまざまな重大度レベルのトリガーしきい値をカプセル化します。

このクラスを使用して、MINOR アラートと MAJOR アラートの両方に対する速度アラートのトリガーのしきい値をパーセンテージでカスタマイズし、MAJOR 速度アラートの時間ベースのトリガーのしきい値をカスタマイズできます。

この SpeedAlertOptions のしきい値によってトリガーされる速度アラートは、SpeedometerUiOptions で UI がカスタマイズされます。

ネストクラスの概要

クラス SpeedAlertOptions.Builder SpeedAlertOptions を構築するためのビルダー。

定数の概要

int UNKNOWN_PERCENTAGE
int UNKNOWN_TIME

フィールドの概要

public final int majorSpeedAlertThresholdPercentage
public final int minorSpeedAlertThresholdPercentage
public final int severityUpgradeDurationSeconds

継承されたメソッドの概要

定数

public static final int UNKNOWN_PERCENTAGE

定数値: -1

public static final int UNKNOWN_TIME

定数値: -1

フィールド

public final int majorSpeedAlertThresholdPercentage

public final int minorSpeedAlertThresholdPercentage

public final int severityUpgradeDurationSeconds