-
- All Implemented Interfaces:
-
kotlin.properties.ReadOnlyProperty,kotlin.properties.ReadWriteProperty
public final class ListenerDelegate<L extends Object> implements ReadWriteProperty<Any, L>
A property delegate to be used with listeners.
The real listener stored in realListener isn't exposed externally, it's only accessible through the wrapper.
The wrapper is exposed by the getter, and a reference to it can be safely stored long-term.
Setting new listeners via the setter will update the underlying listener, and calls to the wrapper will then be forwarded to the latest realListener that was set.