# BrowseFrameLayout.OnFocusSearchListener

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.OnFocusSearchListener) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***


```
public interface BrowseFrameLayout.OnFocusSearchListener
```

<br />

*** ** * ** ***

Interface for selecting a focused view in a BrowseFrameLayout when the system focus finder couldn't find a view to focus.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/androidx/leanback/widget/BrowseFrameLayout.OnFocusSearchListener#onFocusSearch(android.view.View,int)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/View.html focused, int direction)` Returns the view where focus should be requested given the current focused view and the direction of focus search. |

## Public methods

### onFocusSearch

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

```
abstract @Nullable View onFocusSearch(@Nullable View focused, int direction)
```

Returns the view where focus should be requested given the current focused view and the direction of focus search.