public class SupportRequestManagerFragment extends Fragment
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.Fragment.InstantiationException, Fragment.SavedState
Constructor and Description |
---|
SupportRequestManagerFragment() |
SupportRequestManagerFragment(com.bumptech.glide.manager.ActivityFragmentLifecycle lifecycle) |
Modifier and Type | Method and Description |
---|---|
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 put. |
RequestManagerTreeNode |
getRequestManagerTreeNode()
Returns the
RequestManagerTreeNode that provides tree traversal methods relative
to the
associated RequestManager . |
void |
onAttach(Context context) |
void |
onDestroy() |
void |
onDetach() |
void |
onStart() |
void |
onStop() |
void |
setRequestManager(RequestManager requestManager)
Sets the current
RequestManager . |
String |
toString() |
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, 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, onHiddenChanged, onInflate, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, 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, unregisterForContextMenu
public SupportRequestManagerFragment()
public SupportRequestManagerFragment(com.bumptech.glide.manager.ActivityFragmentLifecycle lifecycle)
public void setRequestManager(RequestManager requestManager)
RequestManager
.requestManager
- The manager to put.@Nullable public RequestManager getRequestManager()
RequestManager
or null if none is put.public RequestManagerTreeNode getRequestManagerTreeNode()
RequestManagerTreeNode
that provides tree traversal methods relative
to the
associated RequestManager
.public Set<SupportRequestManagerFragment> getDescendantRequestManagerFragments()