Język

TimeDifferenceFormat Enum

Definition

Selects adaptive-unit or chronometer-style rendering for a notification time difference.

public enum TimeDifferenceFormat
type TimeDifferenceFormat = 
Inheritance
TimeDifferenceFormat

Fields

Name Value Description
Adaptive 1

Formatting option: adaptive (e.g. 1h 5m; 15m; 1m 30s; 5s).

Android reference for android.app.Notification.Metric.TimeDifference.FORMAT_ADAPTIVE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Chronometer 2

Formatting option: chronometer-style, (e.g. two hours = "2:00:00").

Android reference for android.app.Notification.Metric.TimeDifference.FORMAT_CHRONOMETER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

The format does not select timer versus stopwatch behavior or running versus paused state; those choices come from the metric factory.

Applies to