public final class FragmentEP
extends java.lang.Object
The specifications are read and handled by AndroidEntryPointLocator. https://developer.android.com/reference/android/app/Fragment.html
AndroidEntryPointLocator| Modifier and Type | Field and Description |
|---|---|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onActivityCreated
tells the fragment that its activity has completed its own Activity.onCreate().
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onActivityResult |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onAttach
called once the fragment is associated with its activity.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onConfigurationChanged
Unlike activities, other components are never restarted.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onContextItemSelected
This hook is called whenever an item in a context menu is selected.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreate
called to do initial creation of the fragment.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateAnimator
Called when a fragment loads an animation.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateContextMenu
Called when a context menu for the view is about to be shown.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateOptionsMenu
Initialize the contents of the Activity's standard options menu.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateView
creates and returns the view hierarchy associated with the fragment.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onDestroy
called to do final cleanup of the fragment's state.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onDestroyOptionsMenu
Called when this fragment's option menu items are no longer being included in the overall
options menu.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onDestroyView
allows the fragment to clean up resources associated with its View.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onDetach
called immediately prior to the fragment no longer being associated with its activity.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onHiddenChanged
Called when the hidden state has changed.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onInflate
Called when a fragment is being created as part of a view layout inflation, typically from
setting the content view of an activity.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onLowMemory |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onOptionsItemSelected |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onOptionsMenuClosed |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
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.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onPrepareOptionsMenu
This is called right before the menu is shown, every time it is shown.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onResume
makes the fragment interacting with the user (based on its containing activity being resumed).
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onSaveInstanceState
Called to ask the fragment to save its current dynamic state.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onStart
makes the fragment visible to the user (based on its containing activity being started).
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
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.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onTrimMemory |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onViewCreated
Called immediately after onCreateView has returned, but before any saved state has been
restored in to the view.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onViewStateRestored
tells the fragment that all of the saved state of its view hierarchy has been restored.
|
| Constructor and Description |
|---|
FragmentEP() |
| Modifier and Type | Method and Description |
|---|---|
static void |
populate(java.util.List<? super AndroidEntryPointLocator.AndroidPossibleEntryPoint> possibleEntryPoints)
Add the EntryPoint specifications defined in this file to the given list.
|
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onAttach
Called before onCreate
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreate
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).
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateView
This will be called between onCreate(Bundle) and onActivityCreated(Bundle). XXX: CONTRADICTING DOCUMENTATION! his is optional, and non-graphical fragments can return null.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onActivityCreated
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).
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onViewStateRestored
Called when all saved state has been restored into the view hierarchy of the fragment. This is called after onActivityCreated(Bundle) and before onStart().
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onStart
Called when the Fragment is visible to the user. This is generally tied to Activity.onStart of the containing Activity's lifecycle.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onResume
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.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPause
Called when the Fragment is no longer resumed. This is generally tied to Activity.onPause of the containing Activity's lifecycle.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onStop
Called when the Fragment is no longer started. This is generally tied to Activity.onStop of the containing Activity's lifecycle.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onDestroyView
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.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onDestroy
Called when the fragment is no longer in use. This is called after onStop() and before onDetach().
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onDetach
Called when the fragment is no longer attached to its activity. This is called after onDestroy().
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onActivityResult
ActivityEP.onActivityResultpublic static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onConfigurationChanged
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onContextItemSelected
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateAnimator
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateContextMenu
Unlike onCreateOptionsMenu, this will be called every time the context menu is about to be shown
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateOptionsMenu
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onDestroyOptionsMenu
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onHiddenChanged
Fragments start out not hidden.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onInflate
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...
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onLowMemory
ActivityEP.onLowMemory,
ApplicationEP.onLowMemorypublic static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onOptionsItemSelected
ActivityEP.onOptionsItemSelectedpublic static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onOptionsMenuClosed
ActivityEP.onOptionsMenuClosedpublic static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPrepareOptionsMenu
ActivityEP.onPrepareOptionsMenupublic static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onSaveInstanceState
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.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onTrimMemory
ActivityEP.onTrimMemorypublic static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onViewCreated
public static void populate(java.util.List<? super AndroidEntryPointLocator.AndroidPossibleEntryPoint> possibleEntryPoints)
possibleEntryPoints - the list to extend.