FixedTime


class FixedTime : Notification.Metric.MetricValue
kotlin.Any
   ↳ android.app.Notification.Metric.MetricValue
   ↳ android.app.Notification.Metric.FixedTime

A metric value for showing a clock time.

Only hour and minutes will be displayed (according to the user's preference for 12- or 24- hour time, e.g. 14:30 or 2:30 PM); seconds and lower are truncated.

The time should be in a user-understandable timezone (most likely the device's own, unless it's clear from context that it would be different, such as a flight's arrival time on a different city).

Summary

Public constructors

Creates a FixedTime with the specified LocalTime.

Public methods
Boolean
equals(other: Any?)

LocalTime

The LocalTime value.

Int

String

Public constructors

FixedTime

FixedTime(value: LocalTime)

Creates a FixedTime with the specified LocalTime.

Parameters
value LocalTime: This value cannot be null.

Public methods

equals

fun equals(other: Any?): Boolean

getValue

fun getValue(): LocalTime

The LocalTime value.

Return
LocalTime This value cannot be null.

hashCode

fun hashCode(): Int

toString

fun toString(): String