putEnumAsString

fun putEnumAsString(key: String, value: Enum<*>?)

Puts a Enum into the editor in its String representation. Doesn't apply/commit the changes.

When reading a stored Enum string, call Enum.valueOf() to restore the original Enum.

Parameters

value

if null, does nothing