iOS VCS Realtime SDK Documentation

Protocol Realtime​SDKProtocol

public protocol RealtimeSDKProtocol: AnyObject  
RealtimeSDKProtocol RealtimeSDKProtocol AnyObject AnyObject RealtimeSDKProtocol->AnyObject

Conforms To

AnyObject

Requirements

on​Room​Initialized(room:​)

func onRoomInitialized(room: Room) 

Joined the the room

Parameters

room Room

room with roomId, name, remote participants list etc.,

on​Room​Init​Error(error:​)

func onRoomInitError(error: Error) 

Error encountered while joining the room

Parameters

error Error

description of the error

on​Room​Left(room:​)

func onRoomLeft(room: Room) 

Raised when local participant successfully left room.

Parameters

room Room

room description

on​Participant​Joined(room:​participant:​)

func onParticipantJoined(room: Room, participant: RemoteParticipant) 

Raised when a remote participant joined the room. Even though the participant has successfully joined, its media stream is not yet being streamed. The onRemoteStreamUpdated will indicate that.

Parameters

room Room

room description

participant Remote​Participant

remote participant

on​Participant​Left(room:​participant:​)

func onParticipantLeft(room: Room, participant: RemoteParticipant) 

Participant left event.

Parameters

room Room

room description

participant Remote​Participant

Remote participant

on​Local​Stream​Updated(room:​participant:​)

func onLocalStreamUpdated(room: Room, participant: LocalParticipant) 

Raised when the local stream is added, removed or changed.

Parameters

room Room

room description

participant Local​Participant

Local participant

on​Remote​Stream​Updated(room:​participant:​)

func onRemoteStreamUpdated(room: Room, participant: RemoteParticipant) 

Raised when the remote stream is added, removed or changed.

Parameters

room Room

Room

participant Remote​Participant

Remote participant