intercept

abstract fun intercept(event: SendableEvent<*>): SendableEvent<*>?

Intercepts a sendable event before it is sent and potentially modifies it or prevents it from being sent.

Return

the potentially modified sendable event, or null if the event should not be sent

Parameters

event

the sendable event to intercept