Lingua

Notification.Metric.TimeDifference.ForTimer Metodo

Definizione

Overload

Nome Descrizione
ForTimer(Int64, Int32)

Crea una metrica "timer in esecuzione", che mostrerà un conto alla rovescia per endTime, specificato nel frame systemClock.elapsedRealtime() di riferimento.

ForTimer(Instant, Int32)

Crea una metrica "timer in esecuzione", che mostrerà un conto alla rovescia per endTime.

ForTimer(Int64, Int32)

Crea una metrica "timer in esecuzione", che mostrerà un conto alla rovescia per endTime, specificato nel frame systemClock.elapsedRealtime() di riferimento.

[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

Parametri

endTime
Int64

trascorso in tempo reale in corrispondenza del quale il timer raggiunge lo zero. Value è un timestamp non negativo nella base temporale SystemClock.elapsedRealtime().

format
Int32

Il valore è uno dei seguenti: FORMAT_ADAPTIVE; FORMAT_CHRONOMETER

Valori restituiti

Attributi

Commenti

Crea una metrica "timer in esecuzione", che mostrerà un conto alla rovescia per endTime, specificato nel frame systemClock.elapsedRealtime() di riferimento.

Informazioni di riferimento su Android per android.app.Notification.Metric.TimeDifference.forTimer.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a

ForTimer(Instant, Int32)

Crea una metrica "timer in esecuzione", che mostrerà un conto alla rovescia per 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

Parametri

endTime
Instant

istante in cui il timer raggiunge zero. Questo valore non può essere Null.

format
Int32

Il valore è uno dei seguenti: FORMAT_ADAPTIVE; FORMAT_CHRONOMETER

Valori restituiti

Attributi

Commenti

Crea una metrica "timer in esecuzione", che mostrerà un conto alla rovescia per endTime.

Informazioni di riferimento su Android per android.app.Notification.Metric.TimeDifference.forTimer.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a