Package moxy.viewstate.strategy.alias
Annotation Type SingleState
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface SingleStateState strategy alias forSingleStateStrategy. Applying this annotation has the same effect as applying@StateStrategyType(SingleStateStrategy.class).
This strategy will clear current commands queue and then the given command will be put in.Caution! Be sure that you fully set view to initial state inside this command.