addListener

abstract fun addListener(listener: LifecycleListener)

Adds the given listener to the set of listeners managed by this Lifecycle implementation.