Class FragmentEP
The specifications are read and handled by AndroidEntryPointLocator.
- Author:
- Tobias Blaschke <code@tobiasblaschke.de>
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AndroidEntryPointLocator.AndroidPossibleEntryPoint
tells the fragment that its activity has completed its own Activity.onCreate().static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
called once the fragment is associated with its activity.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
Unlike activities, other components are never restarted.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
This hook is called whenever an item in a context menu is selected.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
called to do initial creation of the fragment.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
Called when a fragment loads an animation.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
Called when a context menu for the view is about to be shown.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
Initialize the contents of the Activity's standard options menu.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
creates and returns the view hierarchy associated with the fragment.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
called to do final cleanup of the fragment's state.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
Called when this fragment's option menu items are no longer being included in the overall options menu.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
allows the fragment to clean up resources associated with its View.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
called immediately prior to the fragment no longer being associated with its activity.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
Called when the hidden state has changed.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
Called when a fragment is being created as part of a view layout inflation, typically from setting the content view of an activity.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
fragment is no longer interacting with the user either because its activity is being paused or a fragment operation is modifying it in the activity.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
This is called right before the menu is shown, every time it is shown.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
makes the fragment interacting with the user (based on its containing activity being resumed).static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
Called to ask the fragment to save its current dynamic state.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
makes the fragment visible to the user (based on its containing activity being started).static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
fragment is no longer visible to the user either because its activity is being stopped or a fragment operation is modifying it in the activity.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
Called immediately after onCreateView has returned, but before any saved state has been restored in to the view.static final AndroidEntryPointLocator.AndroidPossibleEntryPoint
tells the fragment that all of the saved state of its view hierarchy has been restored. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
populate
(List<? super AndroidEntryPointLocator.AndroidPossibleEntryPoint> possibleEntryPoints) Add the EntryPoint specifications defined in this file to the given list.
-
Field Details
-
onAttach
called once the fragment is associated with its activity.Called before onCreate
-
onCreate
called to do initial creation of the fragment.Called before before onCreateView. Note that this can be called while the fragment's activity is still in the process of being created. once the activity itself is created: onActivityCreated(Bundle).
-
onCreateView
creates and returns the view hierarchy associated with the fragment.This will be called between onCreate(Bundle) and onActivityCreated(Bundle). XXX: CONTRADICTING DOCUMENTATION! his is optional, and non-graphical fragments can return null.
-
onActivityCreated
tells the fragment that its activity has completed its own Activity.onCreate().Called when the fragment's activity has been created and this fragment's view hierarchy instantiated. This is called after onCreateView XXX: CONTRADICTING DOCUMENTATION! and before onViewStateRestored(Bundle).
-
onViewStateRestored
tells the fragment that all of the saved state of its view hierarchy has been restored.Called when all saved state has been restored into the view hierarchy of the fragment. This is called after onActivityCreated(Bundle) and before onStart().
-
onStart
makes the fragment visible to the user (based on its containing activity being started).Called when the Fragment is visible to the user. This is generally tied to Activity.onStart of the containing Activity's lifecycle.
-
onResume
makes the fragment interacting with the user (based on its containing activity being resumed).Called when the fragment is visible to the user and actively running. This is generally tied to Activity.onResume of the containing Activity's lifecycle.
-
onPause
fragment is no longer interacting with the user either because its activity is being paused or a fragment operation is modifying it in the activity.Called when the Fragment is no longer resumed. This is generally tied to Activity.onPause of the containing Activity's lifecycle.
-
onStop
fragment is no longer visible to the user either because its activity is being stopped or a fragment operation is modifying it in the activity.Called when the Fragment is no longer started. This is generally tied to Activity.onStop of the containing Activity's lifecycle.
-
onDestroyView
allows the fragment to clean up resources associated with its View.Called when the view previously created by onCreateView(LayoutInflater, ViewGroup, Bundle) has been detached from the fragment. This is called after onStop() and before onDestroy(). It is called regardless of whether onCreateView returned a non-null view.
Internally it is called after the view's state has been saved but before it has been removed from its parent.
-
onDestroy
called to do final cleanup of the fragment's state.Called when the fragment is no longer in use. This is called after onStop() and before onDetach().
-
onDetach
called immediately prior to the fragment no longer being associated with its activity.Called when the fragment is no longer attached to its activity. This is called after onDestroy().
-
onActivityResult
- See Also:
-
onConfigurationChanged
Unlike activities, other components are never restarted. -
onContextItemSelected
This hook is called whenever an item in a context menu is selected. -
onCreateAnimator
Called when a fragment loads an animation. -
onCreateContextMenu
Called when a context menu for the view is about to be shown.Unlike onCreateOptionsMenu, this will be called every time the context menu is about to be shown
-
onCreateOptionsMenu
Initialize the contents of the Activity's standard options menu. -
onDestroyOptionsMenu
Called when this fragment's option menu items are no longer being included in the overall options menu. Receiving this call means that the menu needed to be rebuilt, but this fragment's items were not included in the newly built menu (its onCreateOptionsMenu was not called). -
onHiddenChanged
Called when the hidden state has changed.Fragments start out not hidden.
-
onInflate
Called when a fragment is being created as part of a view layout inflation, typically from setting the content view of an activity.This may be called immediately after the fragment is created from a tag in a layout file. Note this is before the fragment's onAttach(Activity) has been called...
-
onLowMemory
- See Also:
-
onOptionsItemSelected
- See Also:
-
onOptionsMenuClosed
- See Also:
-
onPrepareOptionsMenu
This is called right before the menu is shown, every time it is shown.- See Also:
-
onSaveInstanceState
Called to ask the fragment to save its current dynamic state.Bundle here will be available in the Bundle given to onCreate(Bundle), onCreateView(LayoutInflater, ViewGroup, Bundle), and onActivityCreated(Bundle).
This method may be called at any time before onDestroy(). There are many situations where a fragment may be mostly torn down, but its state will not be saved until its owning activity actually needs to save its state.
-
onTrimMemory
- See Also:
-
onViewCreated
Called immediately after onCreateView has returned, but before any saved state has been restored in to the view.
-
-
Constructor Details
-
FragmentEP
public FragmentEP()
-
-
Method Details
-
populate
public static void populate(List<? super AndroidEntryPointLocator.AndroidPossibleEntryPoint> possibleEntryPoints) Add the EntryPoint specifications defined in this file to the given list.- Parameters:
possibleEntryPoints
- the list to extend.
-