---
title: "saveFocusedChild"
description: "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]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
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. |




