-
public final class LocalBackupLocal backup of the last state of the Unleash SDK.
Because it only keeps the last state, it also saves the context id, and uses it to verify the context is the same when loading the state from disc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLocalBackup.Companion
-
Constructor Summary
Constructors Constructor Description LocalBackup(File localDir, UnleashContext lastContext)
-
Method Summary
Modifier and Type Method Description final UnitsubscribeTo(Flow<UnleashState> state)final UnleashStateloadFromDisc(UnleashContext context)-
-
Constructor Detail
-
LocalBackup
LocalBackup(File localDir, UnleashContext lastContext)
-
-
Method Detail
-
subscribeTo
final Unit subscribeTo(Flow<UnleashState> state)
-
loadFromDisc
final UnleashState loadFromDisc(UnleashContext context)
-
-
-
-