Language

Notification.Metric.TimeDifference.ForPausedStopwatch(Duration, Int32) Method

Definition

Creates a "paused stopwatch" metric, showing the elapsedTime.

[Android.Runtime.Register("forPausedStopwatch", "(Ljava/time/Duration;I)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)]
public static Android.App.Notification.Metric.TimeDifference ForPausedStopwatch(Java.Time.Duration elapsedTime, int format);
[<Android.Runtime.Register("forPausedStopwatch", "(Ljava/time/Duration;I)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)>]
static member ForPausedStopwatch : Java.Time.Duration * int -> Android.App.Notification.Metric.TimeDifference

Parameters

elapsedTime
Duration
format
Int32

Value is one of the following: FORMAT_ADAPTIVE; FORMAT_CHRONOMETER

Returns

Attributes

Remarks

Creates a "paused stopwatch" metric, showing the elapsedTime.

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

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.

Applies to