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
 RequestManager getRequestManager()
          Returns the current RequestManager or null if none is set.
 void onDestroy()
           
 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, onAttach, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroyOptionsMenu, onDestroyView, onDetach, onHiddenChanged, onInflate, onLowMemory, 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.


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