data class CustomCategory
A data class to add custom categories, used in some apps. A string resource is used to translate the label of the category into the user’s device language.
| Constructors | |
|---|---|
| CustomCategory(label: Int) | |
| CustomCategory(label: Int, value: String?) |
| Properties | |
|---|---|
| Int | label A string resource to the label to show on the UI. |
| String? | value The category or search term used for the category. When null, the resolved string resource from the label field is used. |
CustomCategory(label: Int)
| Parameters | |
|---|---|
| label: Int | A string resource to the label to show on the UI. |
CustomCategory(label: Int, value: String?)
| Parameters | |
|---|---|
| label: Int | A string resource to the label to show on the UI. |
| value: String? | The category or search term used for the category. When null, the resolved string resource from the label field is used. |
@StringRes val label: Int
A string resource to the label to show on the UI.
val value: String? = null
The category or search term used for the category. When null, the resolved string resource from the label field is used.