# PreferenceFragmentCompat.OnPreferenceStartScreenCallback

Artifact: [androidx.preference:preference](https://developer.android.com/jetpack/androidx/releases/preference) [View Source](https://cs.android.com/search?q=file:androidx/preference/PreferenceFragmentCompat.java+class:androidx.preference.PreferenceFragmentCompat.OnPreferenceStartScreenCallback) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/preference#1.0.0)

*** ** * ** ***


```
public interface PreferenceFragmentCompat.OnPreferenceStartScreenCallback
```

<br />

Known direct subclasses [LeanbackSettingsFragmentCompat](https://developer.android.com/reference/androidx/leanback/preference/LeanbackSettingsFragmentCompat)

|---|---|
| `https://developer.android.com/reference/androidx/leanback/preference/LeanbackSettingsFragmentCompat` | This fragment provides a container for displaying a `https://developer.android.com/reference/androidx/leanback/preference/LeanbackPreferenceFragmentCompat` |

*** ** * ** ***

Interface that the fragment's containing activity should implement to be able to process preference items that wish to switch to a new screen of preferences.

## Summary

| ### Public methods |
|---|---|
| `abstract boolean` | `https://developer.android.com/reference/androidx/preference/PreferenceFragmentCompat.OnPreferenceStartScreenCallback#onPreferenceStartScreen(androidx.preference.PreferenceFragmentCompat,androidx.preference.PreferenceScreen)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/preference/PreferenceFragmentCompat caller, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/preference/PreferenceScreen pref )` Called when the user has clicked on a `https://developer.android.com/reference/androidx/preference/PreferenceScreen` in order to navigate to a new screen of preferences. |

## Public methods

### onPreferenceStartScreen

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

```
abstract boolean onPreferenceStartScreen(
    @NonNull PreferenceFragmentCompat caller,
    @NonNull PreferenceScreen pref
)
```

Called when the user has clicked on a `https://developer.android.com/reference/androidx/preference/PreferenceScreen` in order to navigate to a new screen of preferences.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/preference/PreferenceFragmentCompat caller` | The fragment requesting navigation |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/preference/PreferenceScreen pref` | The preference screen to navigate to |

| Returns |
|---|---|
| `boolean` | `true` if the screen navigation has been handled |