Skip to main content

ViewParent

declare class ViewGroup extends View implements ViewParent {}

Defines the responsibilities for a class that will be a parent of a View. This is the API that a view sees when it wants to interact with its parent.

Instance Method

getParents

declare interface ViewParent {
getParent(): ViewParent
}
  • Description

    Returns the parent if it exists, or null.