Share via


PreferenceActivity.StartPreferenceFragment(Fragment, Boolean) Method

Definition

Start a new fragment.

[Android.Runtime.Register("startPreferenceFragment", "(Landroid/app/Fragment;Z)V", "GetStartPreferenceFragment_Landroid_app_Fragment_ZHandler")]
public virtual void StartPreferenceFragment (Android.App.Fragment? fragment, bool push);
[<Android.Runtime.Register("startPreferenceFragment", "(Landroid/app/Fragment;Z)V", "GetStartPreferenceFragment_Landroid_app_Fragment_ZHandler")>]
abstract member StartPreferenceFragment : Android.App.Fragment * bool -> unit
override this.StartPreferenceFragment : Android.App.Fragment * bool -> unit

Parameters

fragment
Fragment

The fragment to start

push
Boolean

If true, the current fragment will be pushed onto the back stack. If false, the current fragment will be replaced.

Attributes

Remarks

Start a new fragment.

Java documentation for android.preference.PreferenceActivity.startPreferenceFragment(android.app.Fragment, boolean).

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