public class RequestManagerFragment extends Fragment
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.Fragment.InstantiationException, Fragment.SavedState
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 and Description |
---|
RequestManagerFragment() |
Modifier and Type | Method and Description |
---|---|
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()
Returns the
RequestManagerTreeNode for this fragment. |
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 . |
String |
toString() |
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroyOptionsMenu, onDestroyView, onHiddenChanged, onInflate, onInflate, onInflate, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onSaveInstanceState, onViewCreated, onViewStateRestored, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, unregisterForContextMenu
public void setRequestManager(RequestManager requestManager)
RequestManager
.requestManager
- The request manager to use.@Nullable public RequestManager getRequestManager()
RequestManager
or null if none exists.public RequestManagerTreeNode getRequestManagerTreeNode()
RequestManagerTreeNode
for this fragment.public Set<RequestManagerFragment> getDescendantRequestManagerFragments()
public void onTrimMemory(int level)
onTrimMemory
in interface ComponentCallbacks2
onTrimMemory
in class Fragment
public void onLowMemory()
onLowMemory
in interface ComponentCallbacks
onLowMemory
in class Fragment