Interceptor

interface Interceptor

An interface that can intercept a sendable event before it is sent. Interceptors can modify the event or prevent it from being sent by returning null.

Functions

Link copied to clipboard
abstract fun intercept(event: SendableEvent<*>): SendableEvent<*>?

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