EXTENSION
extension HMSDataSource: HMSUpdateListener
Methods
on(join:)
public func on(join room: HMSRoom)
initializes data source with current peers & tracks in the room
- Parameter room: the room which the user joined
Parameters
Name | Description |
---|
room | the room which the user joined |
on(room:update:)
public func on(room: HMSRoom, update: HMSRoomUpdate)
Parameters
Name | Description |
---|
room | the room which was joined |
update | the triggered update type. Should be used to perform different UI Actions |
on(peer:update:)
public func on(peer: HMSPeer, update: HMSPeerUpdate)
Parameters
Name | Description |
---|
peer | the peer who joined/left or was updated |
update | the triggered update type. Should be used to perform different UI Actions |
on(track:update:for:)
public func on(track: HMSTrack, update: HMSTrackUpdate, for peer: HMSPeer)
Parameters
Name | Description |
---|
track | the track which was added, removed or updated |
update | the triggered update type |
peer | the peer for which track was added, removed or updated |
on(updated:)
public func on(updated speakers: [HMSSpeaker])
Parameters
Name | Description |
---|
speakers | the list of speakers |
on(error:)
public func on(error: HMSError)
Parameters
Name | Description |
---|
error | the error that occured |
on(message:)
public func on(message: HMSMessage)
Parameters
Name | Description |
---|
message | the received broadcast message |
onReconnecting()
public func onReconnecting()
onReconnected()
public func onReconnected()