saveFocusedChild

Function

Common
fun FocusRequesterModifierNode.saveFocusedChild(): Boolean

Use this function to request the focus target to save a reference to the currently focused child in its saved instance state. After calling this, focus can be restored to the saved child by making a call to restoreFocusedChild.

Returns

true if the focus target associated with this node has a focused child and we successfully saved a reference to it.