Notification.Metric.TimeDifference.ForStopwatch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ForStopwatch(Instant, Int32) |
Creates a "running stopwatch" metric, which will show the time elapsed since startTime. |
| ForStopwatch(Int64, Int32) |
Creates a "running stopwatch" metric, which will show the time elapsed since startTime, specified in the SystemClock.elapsedRealtime() frame of reference. |
ForStopwatch(Instant, Int32)
Creates a "running stopwatch" metric, which will show the time elapsed since startTime.
[Android.Runtime.Register("forStopwatch", "(Ljava/time/Instant;I)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)]
public static Android.App.Notification.Metric.TimeDifference ForStopwatch(Java.Time.Instant startTime, int format);
[<Android.Runtime.Register("forStopwatch", "(Ljava/time/Instant;I)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)>]
static member ForStopwatch : Java.Time.Instant * int -> Android.App.Notification.Metric.TimeDifference
Parameters
- startTime
- Instant
instant at which the stopwatch started. This value cannot be null.
- format
- Int32
Value is one of the following: FORMAT_ADAPTIVE; FORMAT_CHRONOMETER
Returns
- Attributes
Remarks
Creates a "running stopwatch" metric, which will show the time elapsed since startTime.
Android reference for android.app.Notification.Metric.TimeDifference.forStopwatch.
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
ForStopwatch(Int64, Int32)
Creates a "running stopwatch" metric, which will show the time elapsed since startTime, specified in the SystemClock.elapsedRealtime() frame of reference.
[Android.Runtime.Register("forStopwatch", "(JI)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)]
public static Android.App.Notification.Metric.TimeDifference ForStopwatch(long startTime, int format);
[<Android.Runtime.Register("forStopwatch", "(JI)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)>]
static member ForStopwatch : int64 * int -> Android.App.Notification.Metric.TimeDifference
Parameters
- startTime
- Int64
elapsed realtime at which the stopwatch started. Value is a non-negative timestamp in the SystemClock.elapsedRealtime() time base.
- format
- Int32
Value is one of the following: FORMAT_ADAPTIVE; FORMAT_CHRONOMETER
Returns
- Attributes
Remarks
Creates a "running stopwatch" metric, which will show the time elapsed since startTime, specified in the SystemClock.elapsedRealtime() frame of reference.
Android reference for android.app.Notification.Metric.TimeDifference.forStopwatch.
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.