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 | |
|---|---|
|
Creates a |
|
FixedInt(value: Int, unit: CharSequence?)Creates a |
|
| Public methods | |
|---|---|
| Boolean | |
| CharSequence? |
getUnit()A unit for the value. |
| Int |
getValue()The integer value. |
| Int |
hashCode() |
| String |
toString() |
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
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. |
hashCode
fun hashCode(): Int
toString
fun toString(): String