getEnum

inline fun <T : Enum<T>> getEnum(key: String?, defaultValue: T): Preference<T>

Creates a T preference for the key using the enum class type T with a default of defaultValue


fun <T : Enum<T>> getEnum(key: String?, defaultValue: T, clazz: Class<T>): Preference<T>

Creates a T preference for the key using the enum class clazz with a default of defaultValue