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

StatefulAdapter

public 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 void restoreState(Parcelable savedState)

Restores adapter state

abstract Parcelable saveState()

Saves adapter state

Public methods

restoreState

public abstract void restoreState (Parcelable savedState)

Restores adapter state

Parameters
savedState Parcelable

saveState

public abstract Parcelable saveState ()

Saves adapter state

Returns
Parcelable