NotificationCompat.Metric.FixedDate


class NotificationCompat.Metric.FixedDate : NotificationCompat.Metric.MetricValue


A metric value for showing a date.

Summary

Constants

const Int

Formatting option.

const Int

Formatting option.

const Int

Formatting option.

Public constructors

Creates a FixedDate where the LocalDate will be displayed with FORMAT_AUTOMATIC.

FixedDate(value: LocalDate, format: Int)

Creates a FixedDate where the LocalDate will be displayed in the specified formatting option.

Public functions

Boolean
equals(obj: Any!)
Int

The formatting option for the LocalDate value.

LocalDate

The LocalDate value.

Int
String

Constants

FORMAT_AUTOMATIC

const val FORMAT_AUTOMATIC = 0: Int

Formatting option. The system will decide how to format the date, and whether to omit any pieces, depending on available space, the relationship between the LocalDate and the current date, etc.

FORMAT_LONG_DATE

const val FORMAT_LONG_DATE = 1: Int

Formatting option. The date will be shown in a longer format, e.g. "Aug 13 2025" (according to the device's locale).

FORMAT_SHORT_DATE

const val FORMAT_SHORT_DATE = 2: Int

Formatting option. The date will be shown in a shorter format, e.g. "13/8/25" (according to the device's locale).

Public constructors

FixedDate

FixedDate(value: LocalDate)

Creates a FixedDate where the LocalDate will be displayed with FORMAT_AUTOMATIC.

FixedDate

FixedDate(value: LocalDate, format: Int)

Creates a FixedDate where the LocalDate will be displayed in the specified formatting option.

Public functions

equals

fun equals(obj: Any!): Boolean

getFormat

fun getFormat(): Int

The formatting option for the LocalDate value.

getValue

fun getValue(): LocalDate

The LocalDate value.

hashCode

fun hashCode(): Int

toString

fun toString(): String