FocusTargetNode

Retained capability that makes its logical component a keyboard and text-input focus target.

Focus transitions are synchronous on the owning tree thread. Implementations may invalidate Paint or Semantics, but geometry invalidation during a completed layout transition is unsupported and fails the following phase precondition.

Properties

Link copied to clipboard
abstract val acceptsFocus: Boolean

Whether this node currently permits its logical component to receive focus.

Link copied to clipboard

Whether this node requests focus when no retained component currently owns it after layout.

Link copied to clipboard

Whether this accepting focus target edits text and requires the platform's text-input mode.

Functions

Link copied to clipboard
abstract fun onFocusChanged(focused: Boolean)

Applies one distinct focus transition.