com.bumptech.glide.manager
Class SupportRequestManagerFragment

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

public class SupportRequestManagerFragment
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 within the fragment or activity this fragment is a child of.

See Also:
RequestManagerFragment, RequestManagerRetriever, RequestManager

Nested Class Summary
 
Nested classes/interfaces inherited from class android.support.v4.app.Fragment
Fragment.InstantiationException, Fragment.SavedState
 
Constructor Summary
SupportRequestManagerFragment()
           
SupportRequestManagerFragment(com.bumptech.glide.manager.ActivityFragmentLifecycle lifecycle)
           
 
Method Summary
 Set<SupportRequestManagerFragment> 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 is set.
 RequestManagerTreeNode getRequestManagerTreeNode()
          Returns the RequestManagerTreeNode that provides tree traversal methods relative to the associated RequestManager.
 void onAttach(Activity activity)
           
 void onDestroy()
           
 void onDetach()
           
 void onLowMemory()
           
 void onStart()
           
 void onStop()
           
 void setRequestManager(RequestManager requestManager)
          Sets the current RequestManager.
 
Methods inherited from class android.support.v4.app.Fragment
dump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroyOptionsMenu, onDestroyView, onHiddenChanged, onInflate, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onSaveInstanceState, onViewCreated, onViewStateRestored, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toString, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SupportRequestManagerFragment

public SupportRequestManagerFragment()

SupportRequestManagerFragment

public SupportRequestManagerFragment(com.bumptech.glide.manager.ActivityFragmentLifecycle lifecycle)
Method Detail

setRequestManager

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

Parameters:
requestManager - The manager to set.

getRequestManager

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


getRequestManagerTreeNode

public RequestManagerTreeNode getRequestManagerTreeNode()
Returns the RequestManagerTreeNode that provides tree traversal methods relative to the associated RequestManager.


getDescendantRequestManagerFragments

public Set<SupportRequestManagerFragment> 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

onLowMemory

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