Classes
The following classes are available globally.
-
Declaration
Swift
@objcMembers @objc(SBCCallOptions) public class CallOptions : NSObject
extension CallOptions: NSCopying
-
Undocumented
See moreDeclaration
Swift
@objcMembers @objc(SBCChatOptions) public class SendBirdChatOptions : NSObject, Codable
-
Parameter for accepting incoming call from another user. Contains initial configurations for the call.
Since
1.0.0Declaration
Swift
@objcMembers @objc(SBCAcceptParams) public class AcceptParams : NSObject
-
Parameter for dialing another user. Contains initial configurations for the call.
Since
1.0.0Declaration
Swift
@objcMembers @objc(SBCDialParams) public class DialParams : NSObject
extension DialParams: NSCopying
-
A device for capture video.
func flipCamera(call: DirectCall) { let current = call.currentVideoDevice let devices = call.availableVideoDevices guard let device = devices.first(where: { $0.position != current?.position }) else { return } call.selectVideoDevice(device) { error in // do something when error has occurred. } }
Since
1.0.0- Tag: VideoDevice
Declaration
Swift
@objcMembers @objc(SBCVideoDevice) public class VideoDevice : NSObject
-
Declaration
Swift
@objc public class SBCError : NSError
-
Declaration
Swift
@objcMembers @objc(SBCAuthenticateParams) public class AuthenticateParams : NSObject
-
A Int64 Range with half-open interval from a lower bound up to, but not including, an upper bound. Default value is
Int64.min..<Int64.max
.Since
1.7.0Declaration
Swift
@objcMembers @objc(SBCRange) public class SendBirdRange : NSObject
-
Since
1.0.0Declaration
Swift
@objc public class SBCLogger : NSObject
-
DirectCall class for a call between two participants. Every call is identified with a unique key.
See moreDeclaration
Swift
@objcMembers @objc(SBCDirectCall) public class DirectCall : NSObject, SBTimerBoardDelegate, CallContextDataSource
extension DirectCall: NSCopying
-
Declaration
Swift
@objcMembers @objc(SBCDirectCallLog) public class DirectCallLog : NSObject, Codable
-
A user’s call history is available via a
DirectCallLogListQuery
instance.let params = DirectCallLogListQuery.Params() let query = SendBirdCall.createDirectCallLogListQuery(with: params) query.next { callLogs, error in // }
Since
1.0.0Declaration
Swift
@objcMembers @objc(SBCDirectCallLogListQuery) public class DirectCallLogListQuery : NSObject
-
SendBirdCall
See moreDeclaration
Swift
@objcMembers @objc(SBCSendBirdCall) public class SendBirdCall : NSObject
-
Declaration
Swift
@objcMembers @objc(SBCRecordingOptions) public class RecordingOptions : NSObject
-
A class that provides the
enter()
,exit()
, and other methods, which handle information about the room and operate with other types of objects such as a participant.Since
1.6.0Declaration
Swift
@objcMembers @objc(SBCRoom) public class Room : NSObject, RoomDataSource, RoomSender
-
Declaration
Swift
@objcMembers @objc(SBCRoomParams) public class RoomParams : NSObject, Encodable
-
A class that contains all operational methods of a local participant to handle their audio and video.
Note
LocalParticipant contains all properties of Participant
Since
1.6.0
Declaration
Swift
@objcMembers @objc(SBCLocalParticipant) public class LocalParticipant : Participant
-
A class that provides information about a participant and methods to set a participant’s audio and video.
Since
1.6.0Declaration
Swift
@objcMembers @objc(SBCParticipant) public class Participant : NSObject, Codable
-
A class that contains all operational methods of a remote participant.
Since
1.6.0Note
RemoteParticipant contains all properties of ParticipantDeclaration
Swift
@objc(SBCRemoteParticipant) public class RemoteParticipant : Participant
-
Declaration
Swift
@objcMembers @objc(SBCRoomListQuery) public class RoomListQuery : NSObject
-
Declaration
Swift
@objc(SBCUser) public class User : NSObject, Codable
extension User: NSCopying
-
Video renderring view. Add to your
UIView
to show video.@IBOutlet weak var localVideoView: UIView? @IBOutlet weak var remoteVideoView: UIView? ... let localSBView = SendBirdVideoView(frame: self.localVideoView?.frame ?? CGRect.zero) let remoteSBView = SendBirdVideoView(frame: self.remoteVideoView?.frame ?? CGRect.zero) self.call.updateLocalVideoView(localSBView) self.call.updateRemoteVideoView(remoteSBView) // When you make a call or accept an incoming call. let callOptions = CallOptions( isAudioEnabled = true, isVideoEnabled = true, localVideoView: localSBVideoView remoteVideoView: remoteSBVideoView) // Or when update local / remote view self.call.updateLocalVideoView(localSBView) self.call.updateRemoteVideoView(remoteSBView)
Since
1.0.0- Tag: SendBirdVideoView
-
Video renderring view. Add to your
UIView
to show video.@IBOutlet weak var localVideoView: UIView? @IBOutlet weak var remoteVideoView: UIView? ... let localSBView = SendBirdVideoView(frame: self.localVideoView?.frame ?? CGRect.zero) let remoteSBView = SendBirdVideoView(frame: self.remoteVideoView?.frame ?? CGRect.zero) self.call.updateLocalVideoView(localSBView) self.call.updateRemoteVideoView(remoteSBView) // When you make a call or accept an incoming call. let callOptions = CallOptions( isAudioEnabled = true, isVideoEnabled = true, localVideoView: localSBVideoView remoteVideoView: remoteSBVideoView) // Or when update local / remote view self.call.updateLocalVideoView(localSBView) self.call.updateRemoteVideoView(remoteSBView)
Since
1.0.0- Tag: SendBirdVideoView
Declaration
Swift
@objcMembers @objc(SBCVideoView) public class SendBirdVideoView : RTCEAGLVideoView