Skip to content

RoomLeftEvent

Ajša Terko edited this page Jun 26, 2023 · 2 revisions



errorCode

Description

Getter for the errorCode field.

Returns

  • ErrorCode - Value of the errorCode field containing the information about the status after leaving the room.

Example

func onRoomLeft(_ roomLeftEvent: RoomLeftEvent) {
    os_log("You have left the room. Status: %s", roomLeftEvent.errorCode.name)
}



totalMediaStats

Description

Getter for the totalMediaStats field.

Returns

  • TotalMediaStats - Value of the totalMediaStats field that contains summary of the total media stats after leaving the room.

Example

func onRoomLeft(_ roomLeftEvent: RoomLeftEvent) {
    os_log("You have left the room. Total media stats:  %s", roomLeftEvent.totalMediaStats)
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally