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, 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, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroyOptionsMenu, onDestroyView, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onSaveInstanceState, onViewCreated, onViewStateRestored, postponeEnterTransition, 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, startPostponedEnterTransition, 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()