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 when connecting to the Room succeeds.

- (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 fails.

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

Parameters

room

The Room for which connection failed.

error

The error encountered during the connection attempt.

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 remote Participant connects to the Room.

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

Parameters

room

The Room to which a remote Participant connected.

participant

The remote Participant who connected to the Room.

Declared In

TVIRoom.h

– room:participantDidDisconnect:

This method is invoked when a remote Participant disconnects from the Room.

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

Parameters

room

The Room from which a remote Participant got disconnected.

participant

The remote Participant who disconnected from the Room.

Declared In

TVIRoom.h

– roomDidStartRecording:

This method is invoked when recording of media being shared to a Room has started.

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

Parameters

room

The Room for which recording has been started.

Discussion

This method is only called when a Room which was not previously recording starts recording. If you’ve joined a Room which is already recording this event will not be fired.

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.

Discussion

This method is only called when a Room which was previously recording stops recording. If you’ve joined a Room which is not recording this event will not be fired.

Declared In

TVIRoom.h