enum-support

Saving enum value to KotprefModel as String

object UserSetting : KotprefModel() {
var gameLevel by enumValuePref(GameLevel.NORMAL)
}

enum class GameLevel {
EASY,
NORMAL,
HARD
}

Packages

com.chibatching.kotpref.enumpref
Link copied to clipboard