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)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val count: Long
Link copied to clipboard
Link copied to clipboard
val image: Int
Link copied to clipboard
val label: Int