# NotificationCompat.Metric.FixedTime

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/NotificationCompat.java+class:androidx.core.app.NotificationCompat.Metric.FixedTime) Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

*** ** * ** ***


```
class NotificationCompat.Metric.FixedTime : NotificationCompat.Metric.MetricValue
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.core.app.NotificationCompat.Metric.MetricValue](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.MetricValue) ||
|   | ↳ | [androidx.core.app.NotificationCompat.Metric.FixedTime](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.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 |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedTime#FixedTime(java.time.LocalTime)(value: https://developer.android.com/reference/java/time/LocalTime.html)` Creates a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedTime` with the specified `https://developer.android.com/reference/java/time/LocalTime.html`. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedTime#equals(java.lang.Object)(obj: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://developer.android.com/reference/java/time/LocalTime.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedTime#getValue()()` The `https://developer.android.com/reference/java/time/LocalTime.html` value. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedTime#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedTime#toString()()` |

## Public constructors

### FixedTime

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
FixedTime(value: LocalTime)
```

Creates a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedTime` with the specified `https://developer.android.com/reference/java/time/LocalTime.html`.

## Public functions

### equals

```
fun equals(obj: Any!): Boolean
```

### getValue

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
fun getValue(): LocalTime
```

The `https://developer.android.com/reference/java/time/LocalTime.html` value.

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String
```