Say I have features A
, B
, C
, and A
is enabled by default. B
and C
disabled.
When I enable B
I want to disable A
: only one feature should be enabled at a time.
You'll need to implement a custom version of the StateRepository
interface. Information on this can be found on the togglz documentation
Next override the setFeatureState(...)
function for the required functionality.