-
- All Implemented Interfaces:
-
io.getunleash.android.cache.ObservableToggleCache,io.getunleash.android.cache.ToggleCache
public final class ObservableCache implements ObservableToggleCache
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classObservableCache.Companion
-
Constructor Summary
Constructors Constructor Description ObservableCache(ToggleCache cache, CoroutineScope coroutineScope)
-
Method Summary
Modifier and Type Method Description Map<String, Toggle>read()Toggleget(String key)Unitwrite(UnleashState state)UnitsubscribeTo(Flow<UnleashState> featuresReceived)Flow<UnleashState>getUpdatesFlow()-
-
Constructor Detail
-
ObservableCache
ObservableCache(ToggleCache cache, CoroutineScope coroutineScope)
-
-
Method Detail
-
write
Unit write(UnleashState state)
-
subscribeTo
Unit subscribeTo(Flow<UnleashState> featuresReceived)
-
getUpdatesFlow
Flow<UnleashState> getUpdatesFlow()
-
-
-
-