CategoryDefinition

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class CategoryDefinition(val order: Int = 0, val titleRes: Int = 0)

Marks an object as a setting category.

Usage:

@CategoryDefinition(order = 0)
object General

@CategoryDefinition(order = 1, titleRes = R.string.category_appearance)
object Appearance

Properties

Link copied to clipboard
val order: Int = 0

Display order (lower = first)

Link copied to clipboard
val titleRes: Int = 0

Optional string resource ID for localized title