-
public final class PersistStateKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends MavericksState> BundlepersistMavericksState(T state, Boolean validation)Iterates through all member properties annotated with PersistState and parcels them into a bundle that can be saved with savedInstanceState. final static <T extends MavericksState> TrestorePersistedMavericksState(Bundle bundle, T initialState, Boolean validation)Updates the initial state object given state persisted with PersistState in a Bundle. -
-
Method Detail
-
persistMavericksState
final static <T extends MavericksState> Bundle persistMavericksState(T state, Boolean validation)
Iterates through all member properties annotated with PersistState and parcels them into a bundle that can be saved with savedInstanceState.
-
restorePersistedMavericksState
final static <T extends MavericksState> T restorePersistedMavericksState(Bundle bundle, T initialState, Boolean validation)
Updates the initial state object given state persisted with PersistState in a Bundle.
-
-
-
-