SafeCountData

fun SafeCountData(required: Boolean, @PluralsRes label: Int, @DrawableRes image: Int, @StringRes description: Int)

Builds the class using a boolean value instead of the count.

Author

Arnau Mora

Since

20210916

Parameters

required

Whether or not the safe is marked as required, usually used in required safes.

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.


fun SafeCountData(count: Long, @PluralsRes label: Int, @DrawableRes image: Int, @StringRes description: Int)

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.