Skip to content

ViewEventMapper

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

fun interface ViewEventMapper : EventMapper<ViewEvent>

An interface which can be implemented to modify the writable attributes inside ViewEvent.

Functions

map

abstract override fun map(event: ViewEvent): ViewEvent

By implementing this method you can intercept and modify the writable attributes inside any event ViewEvent before it gets serialised.

Return

the modified event ViewEvent. The same object (by reference) should be returned. If the object returned has a different reference than the object which was passed to the function, it will be ignored and the original object will be used.

Parameters
event the event to be serialised
Clone this wiki locally