Package com.bumptech.glide.manager
Interface Lifecycle
public interface Lifecycle
An interface for listening to Activity/Fragment lifecycle events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(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 Details
-
addListener
Adds the given listener to the set of listeners managed by this Lifecycle implementation. -
removeListener
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.
-