Package com.bumptech.glide.manager
Class TargetTracker
- java.lang.Object
-
- com.bumptech.glide.manager.TargetTracker
-
- All Implemented Interfaces:
LifecycleListener
public final class TargetTracker extends java.lang.Object implements LifecycleListener
Holds the set ofTargets currently active for aRequestManagerand forwards on lifecycle events.
-
-
Constructor Summary
Constructors Constructor Description TargetTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.util.List<Target<?>>getAll()voidonDestroy()Callback for whenFragment.onDestroy()} orActivity.onDestroy()is called.voidonStart()Callback for whenFragment.onStart()} orActivity.onStart()is called.voidonStop()Callback for whenFragment.onStop()} orActivity.onStop()} is called.voidtrack(Target<?> target)voiduntrack(Target<?> target)
-
-
-
Method Detail
-
track
public void track(@NonNull Target<?> target)
-
untrack
public void untrack(@NonNull Target<?> target)
-
onStart
public void onStart()
Description copied from interface:LifecycleListenerCallback for whenFragment.onStart()} orActivity.onStart()is called.- Specified by:
onStartin interfaceLifecycleListener
-
onStop
public void onStop()
Description copied from interface:LifecycleListenerCallback for whenFragment.onStop()} orActivity.onStop()} is called.- Specified by:
onStopin interfaceLifecycleListener
-
onDestroy
public void onDestroy()
Description copied from interface:LifecycleListenerCallback for whenFragment.onDestroy()} orActivity.onDestroy()is called.- Specified by:
onDestroyin interfaceLifecycleListener
-
getAll
@NonNull public java.util.List<Target<?>> getAll()
-
clear
public void clear()
-
-