saveState

fun saveState(): ViewStatePagerAdapter.SavedState

Saves the current state of the adapter. Captures the view hierarchy state of all currently attached views so they can be restored later.

Return

A SavedState containing the saved state of all views.