destroyItem

open fun destroyItem(@NonNull container: ViewGroup, position: Int, @NonNull object: Any)(source)

Remove a page for the given position. The adapter is responsible for removing the view from its container, although it only must ensure this is done by the time it returns from finishUpdate.

Parameters

container

The containing View from which the page will be removed.

position

The page position to be removed.

object

The same object that was returned by instantiateItem.


open fun destroyItem(@NonNull container: View, position: Int, @NonNull object: Any)(source)

Deprecated

Use destroyItem

Remove a page for the given position. The adapter is responsible for removing the view from its container, although it only must ensure this is done by the time it returns from finishUpdate.

Parameters

container

The containing View from which the page will be removed.

position

The page position to be removed.

object

The same object that was returned by instantiateItem.