removeListener

abstract fun removeListener(listener: LifecycleListener)

Removes the given listener from the set of listeners managed by this Lifecycle implementation, returning true if the listener was removed successfully, and false otherwise.

This is an optimization only, there is no guarantee that every added listener will eventually be removed.