isViewFromObject

fun isViewFromObject(view: View, object: Any): Boolean

Determines whether a page View is associated with a specific key object as returned by instantiateItem.

Return

true if the view and object are the same instance, false otherwise.

Parameters

view

The page View to check.

object

The object to compare against (the View itself in this implementation).