TVIRoomDelegate Protocol Reference

Conforms to NSObject
Declared in TVIRoom.h

Overview

TVIRoomDelegate provides callbacks when important changes to a TVIRoom occur.

– didConnectToRoom:

This method is invoked on successful completion of connect.

- (void)didConnectToRoom:(nonnull TVIRoom *)room

Parameters

room

The Room for which connection succeeded.

Declared In

TVIRoom.h

– room:didFailToConnectWithError:

This method is invoked when connecting to the Room succeeds.

- (void)room:(nonnull TVIRoom *)room didFailToConnectWithError:(nonnull NSError *)error

Parameters

room

The Room to which connect failed.

error

The error encountered.

Declared In

TVIRoom.h

– room:didDisconnectWithError:

This method is invoked when the Client disconnects from a Room.

- (void)room:(nonnull TVIRoom *)room didDisconnectWithError:(nullable NSError *)error

Parameters

room

The Room from which the Client disconnected.

error

An NSError describing why disconnect occurred, or nil if the disconnect was initiated locally.

Declared In

TVIRoom.h

– room:participantDidConnect:

This method is invoked when a participant connects to the Room.

- (void)room:(nonnull TVIRoom *)room participantDidConnect:(nonnull TVIParticipant *)participant

Parameters

room

The Room to which a participant got connected.

participant

The participant who connected to the Room.

Declared In

TVIRoom.h

– room:participantDidDisconnect:

This method is invoked when a participant disconnects from the Room.

- (void)room:(nonnull TVIRoom *)room participantDidDisconnect:(nonnull TVIParticipant *)participant

Parameters

room

The Room from which a participant got disconnected.

participant

The participant who disconnected from the Room.

Declared In

TVIRoom.h

– roomDidStartRecording:

Called when the media being shared to a Room is being recorded.

- (void)roomDidStartRecording:(nonnull TVIRoom *)room

Parameters

room

The Room for which recording has been started.

Declared In

TVIRoom.h

– roomDidStopRecording:

This method is invoked when the recording of media shared to a Room has stopped.

- (void)roomDidStopRecording:(nonnull TVIRoom *)room

Parameters

room

The Room for which recording has been stopped.

Declared In

TVIRoom.h