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?
-
Bool
value 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.
isVideoEnabled
hasfalse
as a value.Since
1.0.0- Tag: init(isAudioEnabled)
Declaration
Swift
@objc(initWithAudioEnabled:) public convenience init(isAudioEnabled: Bool)
Parameters
isAudioEnabled
Bool 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
isAudioEnabled
Bool
object assignedtrue
as a default value.isVideoEnabled
Bool
object assignedtrue
as a default value.localVideoView
SendBirdVideoView
object to show local video. Default value isnil
remoteVideoView
SendBirdVideoView
object 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