- RevueSDK
- RemoteParticipant
- disconnect()
Instance Method
disconnect()
斷開與此參與者的連線
@MainActor func disconnect()Discussion
內部透過 ToxAV hangUp 掛斷,並 fire participantDidDisconnect(雙 fire ParticipantDelegate + RoomDelegate),設 lastDisconnectReason = .leave。 其他參與者不受影響。
Room.shared.remoteParticipants["bob"]?.disconnect()
必須在 main thread 呼叫(@MainActor):清理會改 @Published 狀態, 事件也在 main 同步送出。