CallOptions
@objcMembers
@objc(SBCCallOptions)
public class CallOptions : NSObject
extension CallOptions: NSCopying
Options for configuring the call.
Since
1.0.0-
Shows local user’s screen.
Since
1.0.0Declaration
Swift
public weak var localVideoView: SendBirdVideoView? -
Shows remote user’s screen.
Since
1.0.0Declaration
Swift
public weak var remoteVideoView: SendBirdVideoView?
-
Boolvalue indicates that whether to use the front camera when it start video call. device. The default value istrue.Since
1.0.0Declaration
Swift
public var useFrontCamera: Bool -
Bool value indicating whether the call will start with audio. If the value if
false, the call will start without audio.Since
1.0.0Declaration
Swift
public var isAudioEnabled: Bool { get set } -
Bool value indicating whether the call will start with video. If the value if
false, the call will start without video.Since
1.0.0Declaration
Swift
public var isVideoEnabled: Bool { get set } -
Sets up voice call options.
isVideoEnabledhasfalseas a value.Since
1.0.0- Tag: init(isAudioEnabled)
Declaration
Swift
@objc(initWithAudioEnabled:) public convenience init(isAudioEnabled: Bool)Parameters
isAudioEnabledBool value indicating whether the call starts with audio. The default value is
true. -
Since
1.0.0
Tag: init(isAudioEnabled,isVideoEnabled,localVideoView,remoteVideoView)
Declaration
Swift
@objc(initWithAudioEnabled:videoEnabled:localVideoView:remoteVideoView:useFrontCamera:) public init(isAudioEnabled: Bool = true, isVideoEnabled: Bool = true, localVideoView: SendBirdVideoView? = nil, remoteVideoView: SendBirdVideoView? = nil, useFrontCamera: Bool = true)Parameters
isAudioEnabledBoolobject assignedtrueas a default value.isVideoEnabledBoolobject assignedtrueas a default value.localVideoViewSendBirdVideoViewobject to show local video. Default value isnilremoteVideoViewSendBirdVideoViewobject to show remote video. Default value isnil -
Undocumented
Declaration
Swift
public convenience override init() -
Returns a copied instance of the
CallOptions.Declaration
Swift
public func copy(with zone: NSZone? = nil) -> Any
View on GitHub
CallOptions Class Reference