FixedInt


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

Metric corresponding to an integer value.

Summary

Public constructors
FixedInt(value: Int)

Creates a FixedInt instance with the specified integer value, and no unit text.

FixedInt(value: Int, unit: CharSequence?)

Creates a FixedInt instance with the specified integer value.

Public methods
Boolean
equals(other: Any?)

CharSequence?

A unit for the value.

Int

The integer value.

Int

String

Public constructors

FixedInt

FixedInt(value: Int)

Creates a FixedInt instance with the specified integer value, and no unit text.

FixedInt

FixedInt(
    value: Int,
    unit: CharSequence?)

Creates a FixedInt instance with the specified integer value.

Parameters
unit CharSequence?: optional unit for the value. Limit this to a few characters.
This value may be null.

Public methods

equals

fun equals(other: Any?): Boolean

getUnit

fun getUnit(): CharSequence?

A unit for the value.

This may not be shown to the user in all views.

The space allocated to this will be limited. It's recommended to limit this to just a few characters.

Return
CharSequence? This value may be null.

getValue

fun getValue(): Int

The integer value.

hashCode

fun hashCode(): Int

toString

fun toString(): String