Share via


PreferenceActivity.StartPreferencePanel Method

Definition

Overloads

StartPreferencePanel(String, Bundle, Int32, ICharSequence, Fragment, Int32)

Start a new fragment containing a preference panel.

StartPreferencePanel(String, Bundle, Int32, String, Fragment, Int32)

Start a new fragment containing a preference panel.

StartPreferencePanel(String, Bundle, Int32, ICharSequence, Fragment, Int32)

Start a new fragment containing a preference panel.

[Android.Runtime.Register("startPreferencePanel", "(Ljava/lang/String;Landroid/os/Bundle;ILjava/lang/CharSequence;Landroid/app/Fragment;I)V", "GetStartPreferencePanel_Ljava_lang_String_Landroid_os_Bundle_ILjava_lang_CharSequence_Landroid_app_Fragment_IHandler")]
public virtual void StartPreferencePanel (string? fragmentClass, Android.OS.Bundle? args, int titleRes, Java.Lang.ICharSequence? titleText, Android.App.Fragment? resultTo, int resultRequestCode);
[<Android.Runtime.Register("startPreferencePanel", "(Ljava/lang/String;Landroid/os/Bundle;ILjava/lang/CharSequence;Landroid/app/Fragment;I)V", "GetStartPreferencePanel_Ljava_lang_String_Landroid_os_Bundle_ILjava_lang_CharSequence_Landroid_app_Fragment_IHandler")>]
abstract member StartPreferencePanel : string * Android.OS.Bundle * int * Java.Lang.ICharSequence * Android.App.Fragment * int -> unit
override this.StartPreferencePanel : string * Android.OS.Bundle * int * Java.Lang.ICharSequence * Android.App.Fragment * int -> unit

Parameters

fragmentClass
String

Full name of the class implementing the fragment.

args
Bundle

Any desired arguments to supply to the fragment.

titleRes
Int32

Optional resource identifier of the title of this fragment.

titleText
ICharSequence

Optional text of the title of this fragment.

resultTo
Fragment

Optional fragment that result data should be sent to. If non-null, resultTo.onActivityResult() will be called when this preference panel is done. The launched panel must use #finishPreferencePanel(Fragment, int, Intent) when done.

resultRequestCode
Int32

If resultTo is non-null, this is the caller's request code to be received with the result.

Attributes

Remarks

Start a new fragment containing a preference panel. If the preferences are being displayed in multi-pane mode, the given fragment class will be instantiated and placed in the appropriate pane. If running in single-pane mode, a new activity will be launched in which to show the fragment.

Java documentation for android.preference.PreferenceActivity.startPreferencePanel(java.lang.String, android.os.Bundle, int, java.lang.CharSequence, android.app.Fragment, int).

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

StartPreferencePanel(String, Bundle, Int32, String, Fragment, Int32)

Start a new fragment containing a preference panel.

public void StartPreferencePanel (string? fragmentClass, Android.OS.Bundle? args, int titleRes, string? titleText, Android.App.Fragment? resultTo, int resultRequestCode);
member this.StartPreferencePanel : string * Android.OS.Bundle * int * string * Android.App.Fragment * int -> unit

Parameters

fragmentClass
String

Full name of the class implementing the fragment.

args
Bundle

Any desired arguments to supply to the fragment.

titleRes
Int32

Optional resource identifier of the title of this fragment.

titleText
String

Optional text of the title of this fragment.

resultTo
Fragment

Optional fragment that result data should be sent to. If non-null, resultTo.onActivityResult() will be called when this preference panel is done. The launched panel must use #finishPreferencePanel(Fragment, int, Intent) when done.

resultRequestCode
Int32

If resultTo is non-null, this is the caller's request code to be received with the result.

Remarks

Start a new fragment containing a preference panel. If the preferences are being displayed in multi-pane mode, the given fragment class will be instantiated and placed in the appropriate pane. If running in single-pane mode, a new activity will be launched in which to show the fragment.

Java documentation for android.preference.PreferenceActivity.startPreferencePanel(java.lang.String, android.os.Bundle, int, java.lang.CharSequence, android.app.Fragment, int).

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