public interface

SavedStateRegistry.SavedStateProvider<S>

 androidx.savedstate.SavedStateRegistry.SavedStateProvider<S>

Overview

This interface marks a component that contributes to saved state.

Summary

Methods
public java.lang.ObjectsaveState()

Called to retrieve a state from a component before being killed so later the state can be received from SavedStateRegistry.consumeRestoredStateForKey(String)

Methods

public java.lang.Object saveState()

Called to retrieve a state from a component before being killed so later the state can be received from SavedStateRegistry.consumeRestoredStateForKey(String)

Returns:

S with your saved state.