PreferenceFragment.IOnPreferenceStartFragmentCallback.OnPreferenceStartFragment Method

Definition

Called when the user has clicked on a Preference that has a fragment class name associated with it.

[Android.Runtime.Register("onPreferenceStartFragment", "(Landroid/preference/PreferenceFragment;Landroid/preference/Preference;)Z", "GetOnPreferenceStartFragment_Landroid_preference_PreferenceFragment_Landroid_preference_Preference_Handler:Android.Preferences.PreferenceFragment/IOnPreferenceStartFragmentCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnPreferenceStartFragment (Android.Preferences.PreferenceFragment? caller, Android.Preferences.Preference? pref);
[<Android.Runtime.Register("onPreferenceStartFragment", "(Landroid/preference/PreferenceFragment;Landroid/preference/Preference;)Z", "GetOnPreferenceStartFragment_Landroid_preference_PreferenceFragment_Landroid_preference_Preference_Handler:Android.Preferences.PreferenceFragment/IOnPreferenceStartFragmentCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnPreferenceStartFragment : Android.Preferences.PreferenceFragment * Android.Preferences.Preference -> bool

Parameters

pref
Preference

Returns

Attributes

Remarks

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.

Java documentation for android.preference.PreferenceFragment.OnPreferenceStartFragmentCallback.onPreferenceStartFragment(android.preference.PreferenceFragment, android.preference.Preference).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to