Ability to subscribe to single listener for all events in Android SDK

On iOS SDK, it’s possible to subscribe to all player events via a single listener, with something like: self.player!.add(listener: self)

Something like that is not currently available on Android SDK, where each individual event needs its own listener: EventEmitter

Would it be worth (and technically feasible) to implement a single listener for all kind of events in Android SDK as well?

1 Like

Hi Alberto, as the events on the Android SDK are part of a sealed class hierarchy, this can easily be done by retrieving all event classes by using sealedSubclasses - Kotlin Programming Language and attaching them e.g. in a loop.

May I ask what might be the use case for receiving all events and not just a specific subset?