Interface Signal
public interface Signal
A generic interface used to implement actions or events that are not associated with a value.
- Since:
- API version 1
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSignalObserver(NoArgsCallback callback) Registers an observer that gets notified when the signal gets fired.voidfire()Fires the action or event represented by the signal object.
-
Method Details
-
addSignalObserver
Registers an observer that gets notified when the signal gets fired.- Parameters:
callback- a callback function that does not receive any argument.- Since:
- API version 1
-
fire
void fire()Fires the action or event represented by the signal object.- Since:
- API version 1
-