Package 

Class PredefinedUIToggleMediatorImpl

  • All Implemented Interfaces:
    com.usercentrics.sdk.ui.toggle.PredefinedUIToggleMediator

    
    public final class PredefinedUIToggleMediatorImpl
     implements PredefinedUIToggleMediator
                        

    ToggleMediator implementation base on the domain concept of 'Category' and 'Service'. A category is an entity with a state dependents on the state of the services related with it. This is a 1:N relationship. The mediation logic for this relationship is:

    • The category state is True if any related service has its state to True.

    • The category state is False if all the related services are false.

    • If the category state change to True/False, all the related services will change to the same state.