RevueSDK · Swift reference Guides

Protocol

ParticipantDelegate

參與者事件代理 — 細粒度訂閱單一 Participant 的事件

protocol ParticipantDelegate : AnyObject

Overview

participant.delegates(本協定)與 Room.shared.delegates(RoomDelegate 的對應方法)。 例外:說話狀態在本協定是 didUpdateIsSpeaking,RoomDelegate 改收整份名單 didUpdateSpeakingParticipants。

⚠️ 會跳出提示的事件(例如收到靜音請求就彈窗、收到訊息就推通知)只監聽其中一層, 兩層都接會提示兩次。

使用方式:

let alice = Room.shared.remoteParticipants["alice"]
alice?.delegates.add(delegate: self)  // 只關心 alice 的變化

所有方法都有預設空實作,可選擇性實作需要的事件。

Topics

Instance Methods