Class FragmentEP
- java.lang.Object
-
- com.ibm.wala.dalvik.util.androidEntryPoints.FragmentEP
-
public final class FragmentEP extends Object
Hardcoded EntryPoint-specifications for an Android-Activity. The specifications are read and handled by AndroidEntryPointLocator. https://developer.android.com/reference/android/app/Fragment.html- See Also:
AndroidEntryPointLocator
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description FragmentEP()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
populate(List<? super AndroidEntryPointLocator.AndroidPossibleEntryPoint> possibleEntryPoints)
Add the EntryPoint specifications defined in this file to the given list.
-
-
-
Field Detail
-
onAttach
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onAttach
called once the fragment is associated with its activity. Called before onCreate
-
onCreate
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final 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. Called when the Fragment is no longer resumed. This is generally tied to Activity.onPause of the containing Activity's lifecycle.
-
onStop
public static final 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. Called when the Fragment is no longer started. This is generally tied to Activity.onStop of the containing Activity's lifecycle.
-
onDestroyView
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onActivityResult
- See Also:
ActivityEP.onActivityResult
-
onConfigurationChanged
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onConfigurationChanged
Unlike activities, other components are never restarted.
-
onContextItemSelected
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onContextItemSelected
This hook is called whenever an item in a context menu is selected.
-
onCreateAnimator
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateAnimator
Called when a fragment loads an animation.
-
onCreateContextMenu
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateOptionsMenu
Initialize the contents of the Activity's standard options menu.
-
onDestroyOptionsMenu
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onHiddenChanged
Called when the hidden state has changed. Fragments start out not hidden.
-
onInflate
public static final 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. 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onLowMemory
- See Also:
ActivityEP.onLowMemory
,ApplicationEP.onLowMemory
-
onOptionsItemSelected
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onOptionsItemSelected
- See Also:
ActivityEP.onOptionsItemSelected
-
onOptionsMenuClosed
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onOptionsMenuClosed
- See Also:
ActivityEP.onOptionsMenuClosed
-
onPrepareOptionsMenu
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPrepareOptionsMenu
This is called right before the menu is shown, every time it is shown.- See Also:
ActivityEP.onPrepareOptionsMenu
-
onSaveInstanceState
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint 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
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onTrimMemory
- See Also:
ActtivityEP.onTrimMemory
-
onViewCreated
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onViewCreated
Called immediately after onCreateView has returned, but before any saved state has been restored in to the view.
-
-
Method Detail
-
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.
-
-