# BrowseFrameLayout.OnChildFocusListener

Artifact: [androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/BrowseFrameLayout.java+class:androidx.leanback.widget.BrowseFrameLayout.OnChildFocusListener) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***


```
public interface BrowseFrameLayout.OnChildFocusListener
```

<br />

*** ** * ** ***

Interface for managing child focus in a BrowseFrameLayout.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/leanback/widget/BrowseFrameLayout.OnChildFocusListener#onRequestChildFocus(android.view.View,android.view.View)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/View.html child, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/View.html focused)` See `https://developer.android.com/reference/android/view/ViewGroup.html#requestChildFocus(android.view.View, android.view.View)`. |
| `abstract boolean` | `https://developer.android.com/reference/androidx/leanback/widget/BrowseFrameLayout.OnChildFocusListener#onRequestFocusInDescendants(int,android.graphics.Rect)( int direction, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/Rect.html previouslyFocusedRect )` See `https://developer.android.com/reference/android/view/ViewGroup.html#onRequestFocusInDescendants(int, android.graphics.Rect)`. |

## Public methods

### onRequestChildFocus

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
abstract void onRequestChildFocus(@Nullable View child, @Nullable View focused)
```

See `https://developer.android.com/reference/android/view/ViewGroup.html#requestChildFocus(android.view.View, android.view.View)`.

### onRequestFocusInDescendants

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
abstract boolean onRequestFocusInDescendants(
    int direction,
    @Nullable Rect previouslyFocusedRect
)
```

See `https://developer.android.com/reference/android/view/ViewGroup.html#onRequestFocusInDescendants(int, android.graphics.Rect)`.

| Returns |
|---|---|
| `boolean` | True if handled by listener, otherwise returns `https://developer.android.com/reference/android/view/ViewGroup.html#onRequestFocusInDescendants(int, android.graphics.Rect)`. |