SafeCountData
data class SafeCountData(val count: Long, @PluralsRes val label: Int, @DrawableRes val image: Int, @StringRes val description: Int) : Parcelable
Used as a data class for passing display data to the UI renderer.
Author
Arnau Mora
Since
20210916
Parameters
count
The amount of safes counted.
label
The string resource that matches the string to use as display for the count.
image
The drawable resource that matches the icon that represents the count.
description
A long description of the safe type.
Constructors
Link copied to clipboard
fun SafeCountData(required: Boolean, @PluralsRes label: Int, @DrawableRes image: Int, @StringRes description: Int)
Builds the class using a boolean value instead of the count.
Link copied to clipboard
fun SafeCountData(count: Long, @PluralsRes label: Int, @DrawableRes image: Int, @StringRes description: Int)