NotificationCompat.Metric.FixedText


class NotificationCompat.Metric.FixedText : NotificationCompat.Metric.MetricValue


Metric corresponding to a text value.

Summary

Public constructors

Creates a FixedText instance with the specified text.

Creates a FixedText instance with the specified text.

Public functions

Boolean
equals(obj: Any!)
CharSequence?

A unit for the value.

CharSequence

The text value.

Int
String

Public constructors

FixedText

FixedText(value: CharSequence)

Creates a FixedText instance with the specified text.

FixedText

FixedText(value: CharSequence, unit: CharSequence?)

Creates a FixedText instance with the specified text.

Parameters
value: CharSequence

text 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(): CharSequence

The text value.

hashCode

fun hashCode(): Int

toString

fun toString(): String