public final class TargetTracker extends 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() |
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(Target<?> target)
public void untrack(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
public void clear()