PreferenceActivity.OnBuildStartFragmentIntent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by #startWithFragment(String, Bundle, Fragment, int, int, int)
when
in single-pane mode, to build an Intent to launch a new activity showing
the selected fragment.
[Android.Runtime.Register("onBuildStartFragmentIntent", "(Ljava/lang/String;Landroid/os/Bundle;II)Landroid/content/Intent;", "GetOnBuildStartFragmentIntent_Ljava_lang_String_Landroid_os_Bundle_IIHandler")]
public virtual Android.Content.Intent? OnBuildStartFragmentIntent (string? fragmentName, Android.OS.Bundle? args, int titleRes, int shortTitleRes);
[<Android.Runtime.Register("onBuildStartFragmentIntent", "(Ljava/lang/String;Landroid/os/Bundle;II)Landroid/content/Intent;", "GetOnBuildStartFragmentIntent_Ljava_lang_String_Landroid_os_Bundle_IIHandler")>]
abstract member OnBuildStartFragmentIntent : string * Android.OS.Bundle * int * int -> Android.Content.Intent
override this.OnBuildStartFragmentIntent : string * Android.OS.Bundle * int * int -> Android.Content.Intent
Parameters
- fragmentName
- String
The name of the fragment to display.
- args
- Bundle
Optional arguments to supply to the fragment.
- titleRes
- Int32
Optional resource ID of title to show for this item.
- shortTitleRes
- Int32
Optional resource ID of short title to show for this item.
Returns
Returns an Intent that can be launched to display the given fragment.
- Attributes
Remarks
Called by #startWithFragment(String, Bundle, Fragment, int, int, int)
when in single-pane mode, to build an Intent to launch a new activity showing the selected fragment. The default implementation constructs an Intent that re-launches the current activity with the appropriate arguments to display the fragment.
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.