com.bumptech.glide.manager
Class RequestManagerFragment

java.lang.Object
  extended by android.app.Fragment
      extended by com.bumptech.glide.manager.RequestManagerFragment
All Implemented Interfaces:
ComponentCallbacks, ComponentCallbacks2, View.OnCreateContextMenuListener

public class RequestManagerFragment
extends Fragment

A view-less Fragment used to safely store an RequestManager that can be used to start, stop and manage Glide requests started for targets the fragment or activity this fragment is a child of.

See Also:
SupportRequestManagerFragment, RequestManagerRetriever, RequestManager

Nested Class Summary
 
Nested classes/interfaces inherited from class android.app.Fragment
Fragment.InstantiationException, Fragment.SavedState
 
Field Summary
 
Fields inherited from interface android.content.ComponentCallbacks2
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
 
Constructor Summary
RequestManagerFragment()
           
 
Method Summary
 Set<RequestManagerFragment> getDescendantRequestManagerFragments()
          Returns the set of fragments that this RequestManagerFragment's parent is a parent to.
 RequestManager getRequestManager()
          Returns the current RequestManager or null if none exists.
 RequestManagerTreeNode getRequestManagerTreeNode()
           
 void onAttach(Activity activity)
           
 void onDestroy()
           
 void onDetach()
           
 void onLowMemory()
           
 void onStart()
           
 void onStop()
           
 void onTrimMemory(int level)
           
 void setRequestManager(RequestManager requestManager)
          Sets the current RequestManager.
 
Methods inherited from class android.app.Fragment
dump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroyOptionsMenu, onDestroyView, onHiddenChanged, onInflate, onInflate, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onSaveInstanceState, onViewCreated, onViewStateRestored, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivity, startActivityForResult, startActivityForResult, toString, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestManagerFragment

public RequestManagerFragment()
Method Detail

setRequestManager

public void setRequestManager(RequestManager requestManager)
Sets the current RequestManager.

Parameters:
requestManager - The request manager to use.

getRequestManager

public RequestManager getRequestManager()
Returns the current RequestManager or null if none exists.


getRequestManagerTreeNode

public RequestManagerTreeNode getRequestManagerTreeNode()

getDescendantRequestManagerFragments

public Set<RequestManagerFragment> getDescendantRequestManagerFragments()
Returns the set of fragments that this RequestManagerFragment's parent is a parent to. (i.e. our parent is the fragment that we are annotating).


onAttach

public void onAttach(Activity activity)
Overrides:
onAttach in class Fragment

onDetach

public void onDetach()
Overrides:
onDetach in class Fragment

onStart

public void onStart()
Overrides:
onStart in class Fragment

onStop

public void onStop()
Overrides:
onStop in class Fragment

onDestroy

public void onDestroy()
Overrides:
onDestroy in class Fragment

onTrimMemory

public void onTrimMemory(int level)
Specified by:
onTrimMemory in interface ComponentCallbacks2
Overrides:
onTrimMemory in class Fragment

onLowMemory

public void onLowMemory()
Specified by:
onLowMemory in interface ComponentCallbacks
Overrides:
onLowMemory in class Fragment