Most visited

Recently visited

PreferenceFragmentCompat.OnPreferenceStartFragmentCallback

public static interface PreferenceFragmentCompat.OnPreferenceStartFragmentCallback

android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceStartFragmentCallback


PreferenceFragment包含的活动应该实现的接口,以便能够处理希望切换到指定片段的首选项。

Summary

Public methods

abstract boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref)

当用户点击一个具有与其关联的片段类名的首选项时调用。

Public methods

onPreferenceStartFragment

boolean onPreferenceStartFragment (PreferenceFragmentCompat caller, 
                Preference pref)

当用户点击一个具有与其关联的片段类名的首选项时调用。 该实现应该实例化并切换到给定片段的实例。

Parameters
caller PreferenceFragmentCompat: The fragment requesting navigation.
pref Preference: The preference requesting the fragment.
Returns
boolean true if the fragment creation has been handled

Hooray!