Android 11 デベロッパー プレビュー 2 が公開されました。ぜひお試しのうえ、フィードバックをお寄せください

SavedStateRegistryOwner

interface SavedStateRegistryOwner : LifecycleOwner
androidx.savedstate.SavedStateRegistryOwner

A scope that owns SavedStateRegistry

Summary

Public methods

abstract SavedStateRegistry

Returns owned SavedStateRegistry

Inherited functions

Public methods

getSavedStateRegistry

@NonNull abstract fun getSavedStateRegistry(): SavedStateRegistry

Returns owned SavedStateRegistry

Return
SavedStateRegistry a SavedStateRegistry