Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有 features A, B, C, 并且A默认启用。B和C禁用。
A
B
C
当我启用时,B我想禁用A:一次只能启用一项功能。
您需要实现StateRepository接口的自定义版本。这方面的信息可以在 togglz 文档中找到
StateRepository
接下来覆盖setFeatureState(...)所需功能的功能。
setFeatureState(...)