destroyItem

fun destroyItem(container: ViewGroup, position: Int, object: Any)

Removes a page for the given position from the container, saving its view state for later restoration.

Parameters

container

The containing View from which the page will be removed.

position

The page position to be removed.

object

The object representing the page (the View) as returned by instantiateItem.