onFocusChanged

abstract fun onFocusChanged(focused: Boolean)(source)

Applies one distinct focus transition.

Parameters

focused

true after acquisition and false before loss.

Throws

when component focus behavior fails; the retained runtime preserves the exact failure as primary.