David Liu

default implementations for room listener

@@ -132,16 +132,16 @@ constructor( @@ -132,16 +132,16 @@ constructor(
132 } 132 }
133 133
134 interface Listener { 134 interface Listener {
135 - fun onConnect(room: Room)  
136 - fun onDisconnect(room: Room, error: Exception?)  
137 - fun onParticipantConnected(room: Room, participant: RemoteParticipant)  
138 - fun onParticipantDisconnected(room: Room, participant: RemoteParticipant)  
139 - fun onFailedToConnect(room: Room, error: Exception)  
140 - fun onReconnecting(room: Room, error: Exception)  
141 - fun onReconnect(room: Room)  
142 - fun onStartRecording(room: Room)  
143 - fun onStopRecording(room: Room)  
144 - fun onActiveSpeakersChanged(speakers: List<Participant>, room: Room) 135 + fun onConnect(room: Room) {}
  136 + fun onDisconnect(room: Room, error: Exception?) {}
  137 + fun onParticipantConnected(room: Room, participant: RemoteParticipant) {}
  138 + fun onParticipantDisconnected(room: Room, participant: RemoteParticipant) {}
  139 + fun onFailedToConnect(room: Room, error: Exception) {}
  140 + fun onReconnecting(room: Room, error: Exception) {}
  141 + fun onReconnect(room: Room) {}
  142 + fun onStartRecording(room: Room) {}
  143 + fun onStopRecording(room: Room) {}
  144 + fun onActiveSpeakersChanged(speakers: List<Participant>, room: Room) {}
145 } 145 }
146 146
147 override fun onJoin(response: Rtc.JoinResponse) { 147 override fun onJoin(response: Rtc.JoinResponse) {