Android.App.Fragment Members

The members of Android.App.Fragment are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Default constructor.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
ActivityActivity. Return the Activity this fragment is currently associated with.
AllowEnterTransitionOverlapbool. Returns whether the the exit transition and enter transition overlap or not.
AllowReturnTransitionOverlapbool. Returns whether the the return transition and reenter transition overlap or not.
ArgumentsAndroid.OS.Bundle. Return the arguments supplied when the fragment was instantiated, if any.
[read-only]
ChildFragmentManagerFragmentManager. Return a private FragmentManager for placing and managing Fragments inside of this Fragment.
EnterTransitionAndroid.Transitions.Transition. Returns the Transition that will be used to move Views into the initial scene.
ExitTransitionAndroid.Transitions.Transition. Returns the Transition that will be used to move Views out of the scene when the fragment is removed, hidden, or detached when not popping the back stack.
[read-only]
FragmentManagerFragmentManager. Return the FragmentManager for interacting with fragments associated with this fragment's activity.
[read-only]
Idint. Return the identifier this fragment is known by.
[read-only]
IsAddedbool. Return true if the fragment is currently added to its activity.
[read-only]
IsDetachedbool. Return true if the fragment has been explicitly detached from the UI.
[read-only]
IsHiddenbool. Return true if the fragment has been hidden.
[read-only]
IsInLayoutbool. Return true if the layout is included as part of an activity view hierarchy via the <fragment> tag.
[read-only]
IsRemovingbool. Return true if this fragment is currently being removed from its activity.
[read-only]
IsResumedbool. Return true if the fragment is in the resumed state.
[read-only]
IsVisiblebool. Return true if the fragment is currently visible to the user.
[read-only]
LoaderManagerLoaderManager. Return the LoaderManager for this fragment, creating it if needed.
[read-only]
ParentFragmentFragment. Returns the parent Fragment containing this Fragment.
ReenterTransitionAndroid.Transitions.Transition. Returns the Transition that will be used to move Views in to the scene when returning due to popping a back stack.
[read-only]
ResourcesAndroid.Content.Res.Resources. Return getActivity().getResources().
RetainInstancebool.
ReturnTransitionAndroid.Transitions.Transition. Returns the Transition that will be used to move Views out of the scene when the Fragment is preparing to be removed, hidden, or detached because of popping the back stack.
SharedElementEnterTransitionAndroid.Transitions.Transition. Returns the Transition that will be used for shared elements transferred into the content Scene.
SharedElementReturnTransitionAndroid.Transitions.Transition. Return the Transition that will be used for shared elements transferred back during a pop of the back stack.
[read-only]
Tagstring. Get the tag name of the fragment, if specified.
[read-only]
TargetFragmentFragment. Return the target fragment set by Fragment.SetTargetFragment(Fragment, System.Int32).
[read-only]
TargetRequestCodeint. Return the target request code set by Fragment.SetTargetFragment(Fragment, System.Int32).
UserVisibleHintbool.
[read-only]
ViewAndroid.Views.View. Get the root view for the fragment's layout (the one returned by Fragment.OnCreateView(Android.Views.LayoutInflater, Android.Views.ViewGroup, Android.Views.ViewGroup)), if provided.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Dump(string, Java.IO.FileDescriptor, Java.IO.PrintWriter, string[])
Print the Fragments's state into the given stream.
override
Equals(Java.Lang.Object) : bool
Subclasses can not override equals().
override
GetHashCode() : int
Subclasses can not override hashCode().
GetString(int) : string
Return a localized string from the application's package's default string table.
GetString(int, params Java.Lang.Object[]) : string
Documentation for this section has not yet been entered.
GetText(int) : string
Documentation for this section has not yet been entered.
GetTextFormatted(int) : Java.Lang.ICharSequence
Return a localized, styled CharSequence from the application's package's default string table.
static
Instantiate(Android.Content.Context, string) : Fragment
Like Fragment.Instantiate(Android.Content.Context, System.String, System.String) but with a null argument Bundle.
static
Instantiate(Android.Content.Context, string, Android.OS.Bundle) : Fragment
Create a new instance of a Fragment with the given class name.
OnActivityCreated(Android.OS.Bundle)
Called when the fragment's activity has been created and this fragment's view hierarchy instantiated.
OnActivityResult(int, Result, Android.Content.Intent)
Receive the result from a previous call to Fragment.StartActivityForResult(Android.Content.Intent, System.Int32).
OnAttach(Activity)
Called when a fragment is first attached to its activity.
OnConfigurationChanged(Android.Content.Res.Configuration)
Called by the system when the device configuration changes while your component is running.
OnContextItemSelected(Android.Views.IMenuItem) : bool
This hook is called whenever an item in a context menu is selected.
OnCreate(Android.OS.Bundle)
Called to do initial creation of a fragment.
OnCreateAnimator(FragmentTransit, bool, int) : Android.Animation.Animator
Called when a fragment loads an animation.
OnCreateContextMenu(Android.Views.IContextMenu, Android.Views.View, Android.Views.IContextMenuContextMenuInfo)
Called when a context menu for the view is about to be shown.
OnCreateOptionsMenu(Android.Views.IMenu, Android.Views.MenuInflater)
Initialize the contents of the Activity's standard options menu.
OnCreateView(Android.Views.LayoutInflater, Android.Views.ViewGroup, Android.OS.Bundle) : Android.Views.View
Called to have the fragment instantiate its user interface view.
OnDestroy()
Called when the fragment is no longer in use.
OnDestroyOptionsMenu()
Called when this fragment's option menu items are no longer being included in the overall options menu.
OnDestroyView()
Called when the view previously created by Fragment.OnCreateView(Android.Views.LayoutInflater, Android.Views.ViewGroup, Android.Views.ViewGroup) has been detached from the fragment.
OnDetach()
Called when the fragment is no longer attached to its activity.
OnHiddenChanged(bool)
Called when the hidden state (as returned by Fragment.IsHidden of the fragment has changed.
OnInflate(Android.Util.IAttributeSet, Android.OS.Bundle)
OnInflate(Activity, Android.Util.IAttributeSet, Android.OS.Bundle)
Called when a fragment is being created as part of a view layout inflation, typically from setting the content view of an activity.
OnLowMemory()
This is called when the overall system is running low on memory, and actively running processes should trim their memory usage.
OnOptionsItemSelected(Android.Views.IMenuItem) : bool
This hook is called whenever an item in your options menu is selected.
OnOptionsMenuClosed(Android.Views.IMenu)
This hook is called whenever the options menu is being closed (either by the user canceling the menu with the back/menu button, or when an item is selected).
OnPause()
Called when the Fragment is no longer resumed.
OnPrepareOptionsMenu(Android.Views.IMenu)
Prepare the Screen's standard options menu to be displayed.
OnResume()
Called when the fragment is visible to the user and actively running.
OnSaveInstanceState(Android.OS.Bundle)
Called to ask the fragment to save its current dynamic state, so it can later be reconstructed in a new instance of its process is restarted.
OnStart()
Called when the Fragment is visible to the user.
OnStop()
Called when the Fragment is no longer started.
OnTrimMemory(Android.Content.TrimMemory)
Called when the operating system has determined that it is a good time for a process to trim unneeded memory from its process.
OnViewCreated(Android.Views.View, Android.OS.Bundle)
Called immediately after Fragment.OnCreateView(Android.Views.LayoutInflater, Android.Views.ViewGroup, Android.Views.ViewGroup) has returned, but before any saved state has been restored in to the view.
OnViewStateRestored(Android.OS.Bundle)
Called when all saved state has been restored into the view hierarchy of the fragment.
RegisterForContextMenu(Android.Views.View)
Registers a context menu to be shown for the given view (multiple views can show the context menu).
SetEnterSharedElementCallback(SharedElementCallback)
When custom transitions are used with Fragments, the enter transition callback is called when this Fragment is attached or detached when not popping the back stack.
SetExitSharedElementCallback(SharedElementCallback)
When custom transitions are used with Fragments, the exit transition callback is called when this Fragment is attached or detached when popping the back stack.
SetHasOptionsMenu(bool)
Report that this fragment would like to participate in populating the options menu by receiving a call to Fragment.OnCreateOptionsMenu(Android.Views.IMenu, Android.Views.MenuInflater) and related methods.
SetInitialSavedState(Fragment.SavedState)
Set the initial saved state that this Fragment should restore itself from when first being constructed, as returned by FragmentManager.SaveFragmentInstanceState(Fragment).
SetMenuVisibility(bool)
Set a hint for whether this fragment's menu should be visible.
SetTargetFragment(Fragment, int)
Optional target for this fragment.
StartActivity(Android.Content.Intent)
Call Activity.startActivity(android.content.Intent) from the fragment's containing Activity.
StartActivity(Android.Content.Intent, Android.OS.Bundle)
Call Activity.startActivity(android.content.Intent, android.os.Bundle) from the fragment's containing Activity.
StartActivityForResult(Android.Content.Intent, int)
Call Activity.StartActivityForResult(Android.Content.Intent, System.Int32) from the fragment's containing Activity.
StartActivityForResult(Android.Content.Intent, int, Android.OS.Bundle)
Call Activity.StartActivityForResult(Android.Content.Intent, System.Int32, System.Int32) from the fragment's containing Activity.
UnregisterForContextMenu(Android.Views.View)
Prevents a context menu to be shown for the given view.