NotificationCompat.Metric.FixedTime


public final class NotificationCompat.Metric.FixedTime extends NotificationCompat.Metric.MetricValue


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
@NonNull LocalTime

The LocalTime value.

int
@NonNull String

Public constructors

FixedTime

public FixedTime(@NonNull LocalTime value)

Creates a FixedTime with the specified LocalTime.

Public methods

equals

public boolean equals(Object obj)

getValue

public @NonNull LocalTime getValue()

The LocalTime value.

hashCode

public int hashCode()

toString

public @NonNull String toString()