isViewFromObject

abstract fun isViewFromObject(@NonNull view: View, @NonNull object: Any): Boolean(source)

Determines whether a page View is associated with a specific key object as returned by instantiateItem. This method is required for a PagerAdapter to function properly.

Return

true if view is associated with the key object object

Parameters

view

Page View to check for association with object

object

Object to check for association with view