Package 

Class SavedStatePluginKt

    • Method Summary

      Modifier and Type Method Description
      final static <S extends MVIState, Parcelable, I extends MVIIntent, A extends MVIAction> StorePlugin<S, I, A> parcelizeStatePlugin(String key, SavedStateHandle handle, String name) A plugin that restores the pro.respawn.flowmvi.api.StateProvider.state from a handle in StorePlugin.onStart and saves into handle asynchronously in StorePlugin.onState.
      final static <S extends MVIState, Serializable, I extends MVIIntent, A extends MVIAction> StorePlugin<S, I, A> serializeStatePlugin(String key, SavedStateHandle handle, String name) A plugin that restores the pro.respawn.flowmvi.api.StateProvider.state from a handle in StorePlugin.onStart and saves into handle asynchronously in StorePlugin.onState.
      final static <S extends MVIState, Parcelable, I extends MVIIntent, A extends MVIAction> Unit parcelizeState(StoreBuilder<S, I, A> $self, SavedStateHandle handle, String key, String name) Creates and installs a new savedStatePlugin.
      final static <S extends MVIState, Serializable, I extends MVIIntent, A extends MVIAction> Unit serializeState(StoreBuilder<S, I, A> $self, SavedStateHandle handle, String key) Creates and installs a new savedStatePlugin.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parcelizeStatePlugin

        @Deprecated(message = If you want to save state, use the new `savedstate` module dependency) final static <S extends MVIState, Parcelable, I extends MVIIntent, A extends MVIAction> StorePlugin<S, I, A> parcelizeStatePlugin(String key, SavedStateHandle handle, String name)

        A plugin that restores the pro.respawn.flowmvi.api.StateProvider.state from a handle in StorePlugin.onStart and saves into handle asynchronously in StorePlugin.onState. Your state must be Parcelable to use this.

      • serializeStatePlugin

        @Deprecated(message = If you want to save state, use the new `savedstate` module dependency) final static <S extends MVIState, Serializable, I extends MVIIntent, A extends MVIAction> StorePlugin<S, I, A> serializeStatePlugin(String key, SavedStateHandle handle, String name)

        A plugin that restores the pro.respawn.flowmvi.api.StateProvider.state from a handle in StorePlugin.onStart and saves into handle asynchronously in StorePlugin.onState. Your state must be Serializable to use this

      • parcelizeState

        @Deprecated(message = If you want to save state, use the new `savedstate` module dependency) final static <S extends MVIState, Parcelable, I extends MVIIntent, A extends MVIAction> Unit parcelizeState(StoreBuilder<S, I, A> $self, SavedStateHandle handle, String key, String name)

        Creates and installs a new savedStatePlugin. Your state must be Parcelable to use this.