Lenguaje

Notification.Metric.TimeDifference.ForStopwatch Método

Definición

Sobrecargas

Nombre Description
ForStopwatch(Instant, Int32)

Crea una métrica de "cronómetro en ejecución", que mostrará el tiempo transcurrido desde startTime.

ForStopwatch(Int64, Int32)

Crea una métrica de "cronómetro en ejecución", que mostrará el tiempo transcurrido desde startTime, especificado en el marco SystemClock.elapsedRealtime() de referencia.

ForStopwatch(Instant, Int32)

Crea una métrica de "cronómetro en ejecución", que mostrará el tiempo transcurrido desde 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

Parámetros

startTime
Instant

instantánea en la que se inició el cronómetro. Este valor no puede ser nulo.

format
Int32

El valor es uno de los siguientes: FORMAT_ADAPTIVE; FORMAT_CHRONOMETER

Devoluciones

Atributos

Comentarios

Crea una métrica de "cronómetro en ejecución", que mostrará el tiempo transcurrido desde startTime.

Referencia de Android para android.app.Notification.Metric.TimeDifference.forStopwatch.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

ForStopwatch(Int64, Int32)

Crea una métrica de "cronómetro en ejecución", que mostrará el tiempo transcurrido desde startTime, especificado en el marco SystemClock.elapsedRealtime() de referencia.

[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

Parámetros

startTime
Int64

transcurrió en tiempo real en el que se inició el cronómetro. El valor es una marca de tiempo no negativa en la base de tiempo SystemClock.elapsedRealtime().

format
Int32

El valor es uno de los siguientes: FORMAT_ADAPTIVE; FORMAT_CHRONOMETER

Devoluciones

Atributos

Comentarios

Crea una métrica de "cronómetro en ejecución", que mostrará el tiempo transcurrido desde startTime, especificado en el marco SystemClock.elapsedRealtime() de referencia.

Referencia de Android para android.app.Notification.Metric.TimeDifference.forStopwatch.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a