subscribe
Simplified EventReceiver.subscribeTo for Kotlin. Type of event is automatically inferred from callback parameter type.
Return
This instance of EventReceiver for chaining
Parameters
The priority of this listener in the events' collection. (Currently Non Functional)
Whether to ignore events that are cancelled. (Currently Non functional)
Skips event already present in the flow. This is false
by default.
The callback function.
A variant of subscribe that uses an instance of EventCallback as callback.
Return
This instance of EventReceiver for chaining
See also
Parameters
The priority of this listener in the events' collection. (Currently Non Functional)
Whether to ignore events that are cancelled. (Currently Non functional)
Skips event already present in the flow. This is false
by default
Interface with implemented callback function