contains

protected operator fun contains(child: View): Boolean

Tells whether this View is child's parent. Unlike ancestorOf, this checks only a parent-child relationship.

Return

true IFF the View is a child of the View

Parameters

child

The View being tested


open operator override fun contains(point: Point): Boolean

Checks whether a point (relative to parent or Display if top-level) is within the View's bounds. This method must account for any transform and camera applied to the View. The default implementation does this and delegates to intersects.

Return

true IFF the point falls within the View

Parameters

point

within the View's parent