NotificationCompat.Metric.FixedInt


class NotificationCompat.Metric.FixedInt : NotificationCompat.Metric.MetricValue


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 functions

Boolean
equals(obj: 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
value: Int

integer value

unit: CharSequence?

optional unit for the value. Limit this to a few characters.

Public functions

equals

fun equals(obj: 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.

getValue

fun getValue(): Int

The integer value.

hashCode

fun hashCode(): Int

toString

fun toString(): String