com.bumptech.glide.manager
Class RequestManagerFragment
java.lang.Object
android.app.Fragment
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
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 |
RequestManagerFragment
public RequestManagerFragment()
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