Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

SavedStateProvider

interface SavedStateProvider
androidx.savedstate.SavedStateRegistry.SavedStateProvider

This interface marks a component that contributes to saved state.

Summary

Public methods
abstract Bundle

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

Public methods

saveState

@NonNull abstract fun saveState(): Bundle

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

Return
Bundle S with your saved state.