Notification.Metric.TimeDifference.ForTimer 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 |
|---|---|
| ForTimer(Int64, Int32) |
Creates a "running timer" metric, which will show a countdown to endTime, specified in the SystemClock.elapsedRealtime() frame of reference. |
| ForTimer(Instant, Int32) |
Creates a "running timer" metric, which will show a countdown to endTime. |
ForTimer(Int64, Int32)
Creates a "running timer" metric, which will show a countdown to endTime, specified in the SystemClock.elapsedRealtime() frame of reference.
[Android.Runtime.Register("forTimer", "(JI)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)]
public static Android.App.Notification.Metric.TimeDifference ForTimer(long endTime, int format);
[<Android.Runtime.Register("forTimer", "(JI)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)>]
static member ForTimer : int64 * int -> Android.App.Notification.Metric.TimeDifference
Parameters
- endTime
- Int64
elapsed realtime at which the timer reaches zero. 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 timer" metric, which will show a countdown to endTime, specified in the SystemClock.elapsedRealtime() frame of reference.
Android reference for android.app.Notification.Metric.TimeDifference.forTimer.
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
ForTimer(Instant, Int32)
Creates a "running timer" metric, which will show a countdown to endTime.
[Android.Runtime.Register("forTimer", "(Ljava/time/Instant;I)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)]
public static Android.App.Notification.Metric.TimeDifference ForTimer(Java.Time.Instant endTime, int format);
[<Android.Runtime.Register("forTimer", "(Ljava/time/Instant;I)Landroid/app/Notification$Metric$TimeDifference;", "", ApiSince=37)>]
static member ForTimer : Java.Time.Instant * int -> Android.App.Notification.Metric.TimeDifference
Parameters
- endTime
- Instant
instant at which the timer reaches zero. This value cannot be null.
- format
- Int32
Value is one of the following: FORMAT_ADAPTIVE; FORMAT_CHRONOMETER
Returns
- Attributes
Remarks
Creates a "running timer" metric, which will show a countdown to endTime.
Android reference for android.app.Notification.Metric.TimeDifference.forTimer.
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.