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

StatefulAdapter

interface StatefulAdapter
androidx.viewpager2.adapter.StatefulAdapter

ViewPager2 adapters should implement this interface to be called during View#onSaveInstanceState() and View#onRestoreInstanceState(Parcelable)

Summary

Public methods
abstract Unit
restoreState(@NonNull savedState: Parcelable)

Restores adapter state

abstract Parcelable

Saves adapter state

Public methods

restoreState

abstract fun restoreState(@NonNull savedState: Parcelable): Unit

Restores adapter state

saveState

@NonNull abstract fun saveState(): Parcelable

Saves adapter state