Documentation / listeners / com.femastudios.listeners / NoOpListenersManager
NoOpListenersManager
object NoOpListenersManager : ListenersManager<Any>
A ListenersManager that does nothing. It can be used in situations where it is known that listeners won't ever be invoked
Functions
addStrongly |
Adds a listener, keeping a strong reference. This means that if nobody else keeps a pointer to the listener, it won't be disposed by the Garbage Collector and will be kept in this object forever. fun addStrongly(listener: Any): Unit |
addWeakly |
Adds a listener, keeping a weak reference. This means that if nobody else keeps a pointer to the listener, it'll at some point automatically disposed by the Garbage Collector. fun addWeakly(listener: Any): Unit |
contains |
Returns whether or not the given listener is contained in this listener manager fun contains(listener: Any): Boolean |
remove |
Removes the specified listener. fun remove(listener: Any): Unit |