Package com.bumptech.glide.manager
Interface Lifecycle
-
public interface LifecycleAn interface for listening to Activity/Fragment lifecycle events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(LifecycleListener listener)Adds the given listener to the set of listeners managed by this Lifecycle implementation.voidremoveListener(LifecycleListener listener)Removes the given listener from the set of listeners managed by this Lifecycle implementation, returningtrueif the listener was removed successfully, andfalseotherwise.
-
-
-
Method Detail
-
addListener
void addListener(@NonNull LifecycleListener listener)Adds the given listener to the set of listeners managed by this Lifecycle implementation.
-
removeListener
void removeListener(@NonNull LifecycleListener listener)Removes the given listener from the set of listeners managed by this Lifecycle implementation, returningtrueif the listener was removed successfully, andfalseotherwise.This is an optimization only, there is no guarantee that every added listener will eventually be removed.
-
-