-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum DidomiToggle.State extends Enum<DidomiToggle.State>
Available states of Component
-
-
Method Summary
Modifier and Type Method Description final DidomiToggle.StatenextState(Boolean hasMiddleState)Compute next state after a toggle final DidomiToggle.StatevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<DidomiToggle.State>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetColorRes()final IntegergetIconRes()-
-
Method Detail
-
nextState
final DidomiToggle.State nextState(Boolean hasMiddleState)
Compute next state after a toggle
- Parameters:
hasMiddleState- as Boolean true if UNKNOWN is allowed
-
valueOf
final DidomiToggle.State valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<DidomiToggle.State> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getColorRes
final Integer getColorRes()
-
getIconRes
final Integer getIconRes()
-
-
-
-