RoomDelegate
@objc(SBCRoomDelegate)
public protocol RoomDelegate : AnyObject
RoomDelegate methods are invoked along the flow of the room. You should implement the delegate methods to adjust your app according to the changes to the states of the room.
override func viewDidLoad() {
// ...
room.addDelegate(self, identifier: "identifier")
}
// ...
Since
1.6.0-
Called when a remote participant has entered a room.
Parameters
- participant:
RemoteParticipantobject.
- participant:
Since
1.6.0
Declaration
Swift
@objc optional func didRemoteParticipantEnter(_ participant: RemoteParticipant) -
Called when a remote participant has exited a room.
Parameters
- participant:
RemoteParticipantobject.
- participant:
Since
1.6.0
Declaration
Swift
@objc optional func didRemoteParticipantExit(_ participant: RemoteParticipant) -
Called when a remote participant has started media streaming
Parameters
- participant:
RemoteParticipantobject.
- participant:
Since
1.6.0
Declaration
Swift
@objc optional func didRemoteParticipantStreamStart(_ participant: RemoteParticipant) -
Called when a remote partcipant’s audio settings has changed.
Parameters
- participant:
RemoteParticipantobject.
- participant:
Since
1.6.0
Declaration
Swift
@objc optional func didRemoteAudioSettingsChange(_ participant: RemoteParticipant) -
Called when a remote participant’s video settings has changed.
Parameters
- participant:
RemoteParticipantobject.
- participant:
Since
1.6.0
Declaration
Swift
@objc optional func didRemoteVideoSettingsChange(_ participant: RemoteParticipant) -
Called when the custom items of the room are updated.
Since
1.8.0Declaration
Swift
@objc optional func didCustomItemsUpdate(updatedKeys: [String])Parameters
updatedKeyskeys that have updated.
-
Called when the custom items of the room are deleted.
Since
1.8.0Declaration
Swift
@objc optional func didCustomItemsDelete(deletedKeys: [String])Parameters
deletedKeyskeys that have deleted.
-
Called when an error occurs on Sendbird server while processing a request.
Parameters
- error:
Errorobject.
- error:
Since
1.6.0
Declaration
Swift
@objc optional func didReceiveError(_ error: SBCError, participant: Participant?) -
Undocumented
Declaration
Swift
@objc optional func didAudioDeviceChange(_ room: Room, session: AVAudioSession, previousRoute: AVAudioSessionRouteDescription, reason: AVAudioSession.RouteChangeReason)
View on GitHub
RoomDelegate Protocol Reference