Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/preference/PreferenceFragment.OnPreferenceStartFragmentCallback#pubmethods)

# PreferenceFragment.OnPreferenceStartFragmentCallback

*** ** * ** ***

` public static interface PreferenceFragment.OnPreferenceStartFragmentCallback `   
` `

|---|
| android.preference.PreferenceFragment.OnPreferenceStartFragmentCallback |

Known indirect subclasses [PreferenceActivity](https://developer.android.com/reference/android/preference/PreferenceActivity) [PreferenceActivity](https://developer.android.com/reference/android/preference/PreferenceActivity) *This class was deprecated in API level 29. Use the [AndroidX](https://developer.android.com/jetpack/androidx) [Preference Library](https://developer.android.com/reference/androidx/preference/package-summary) for consistent behavior across all devices. For more information on using the AndroidX Preference Library see [Settings](https://developer.android.com/guide/topics/ui/settings).*   

*** ** * ** ***

<br />

**This interface was deprecated in API level 28.**   

Use `https://developer.android.com/reference/androidx/preference/PreferenceFragmentCompat.OnPreferenceStartFragmentCallback.html`

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

## Summary

| ### Public methods ||
|---|---|
| ` abstract boolean` | ` https://developer.android.com/reference/android/preference/PreferenceFragment.OnPreferenceStartFragmentCallback#onPreferenceStartFragment(android.preference.PreferenceFragment,%20android.preference.Preference)(https://developer.android.com/reference/android/preference/PreferenceFragment caller, https://developer.android.com/reference/android/preference/Preference pref) ` Called when the user has clicked on a Preference that has a fragment class name associated with it. |

## Public methods

### onPreferenceStartFragment

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean onPreferenceStartFragment (PreferenceFragment caller, 
                Preference pref)
```

Called when the user has clicked on a Preference that has a fragment class name associated with it. The implementation to should instantiate and switch to an instance of the given fragment.

<br />

| Parameters ||
|---|---|
| `caller` | `PreferenceFragment` <br /> |
| `pref` | `Preference` <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |