EventCallback

data class EventCallback<T : Any>

Represent an event callback for an EventReceiver.

See also

Parameters

T

the event type, if this event is generic / not final, all posted events that inherit from this event will be received.

priority

The priority of this listener in the events' collection. (Currently Non Functional)

ignoreCancelled

Whether to ignore events that are cancelled. (Currently Non functional)

skipRetained

Skips event already present in the flow. This is false by default.

callback

The callback function.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val callback: suspend (event: T) -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val skipRetained: Boolean = false