public final class TargetTracker extends java.lang.Object implements LifecycleListener
Target
s currently active for a RequestManager
and forwards on lifecycle events.Constructor and Description |
---|
TargetTracker() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.util.List<Target<?>> |
getAll() |
void |
onDestroy()
Callback for when
Fragment.onDestroy() } or Activity.onDestroy() is called. |
void |
onStart()
Callback for when
Fragment.onStart() } or Activity.onStart() is called. |
void |
onStop()
Callback for when
Fragment.onStop() } or Activity.onStop() } is called. |
void |
track(Target<?> target) |
void |
untrack(Target<?> target) |
public void track(@NonNull Target<?> target)
public void untrack(@NonNull Target<?> target)
public void onStart()
LifecycleListener
Fragment.onStart()
} or Activity.onStart()
is called.onStart
in interface LifecycleListener
public void onStop()
LifecycleListener
Fragment.onStop()
} or Activity.onStop()
} is called.onStop
in interface LifecycleListener
public void onDestroy()
LifecycleListener
Fragment.onDestroy()
} or Activity.onDestroy()
is called.onDestroy
in interface LifecycleListener
@NonNull public java.util.List<Target<?>> getAll()
public void clear()