setEventSender
Optional configuration method to register a custom EventSender implementation in the SDK that can be used e.g. if you want to send events to your own remote server or service.
Parameters
eventSender
The EventSender interface to set.