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 |
---|---|
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, getLifecycle, 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(@NonNull com.bumptech.glide.manager.ActivityFragmentLifecycle lifecycle)
public void setRequestManager(@Nullable RequestManager requestManager)
RequestManager
.requestManager
- The manager to put.@Nullable public RequestManager getRequestManager()
RequestManager
or null if none is put.@NonNull public RequestManagerTreeNode getRequestManagerTreeNode()
RequestManagerTreeNode
that provides tree traversal methods relative
to the
associated RequestManager
.