hasFocus

open override fun hasFocus(): Boolean

Returns true if this view has focus itself, or is the ancestor of the view that has focus.

Return

True if this view has or contains focus, false otherwise.