ViewEventMapper - DataDog/dd-sdk-android GitHub Wiki
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 |