add Event Listener
This method can be used to register a ParticipantEventListener on this participant to receive callbacks for stream and state-change events.
Multiple listeners can be added. They will all be invoked when an event occurs.
Code Example:
participant.addEventListener(object : ParticipantEventListener() {
override fun onStreamEnabled(stream: Stream) {
// Handle stream enabled
}
})
Content copied to clipboard
Parameters
listener
the ParticipantEventListener to add