onPreferenceStartFragment
abstract fun onPreferenceStartFragment(@NonNull caller: PreferenceFragment, @NonNull pref: Preference): Boolean(source)
Called when the user has clicked on a Preference that has a fragment class name associated with it. The implementation should instantiate and switch to an instance of the given fragment.
Return
true
if the fragment creation has been handled
Parameters
caller
The fragment requesting navigation
pref
The preference requesting the fragment