CallOptions

@objcMembers
@objc(SBCCallOptions)
public class CallOptions : NSObject
extension CallOptions: NSCopying

Options for configuring the call.

Since

1.0.0

Video: SendBirdView

Call Information

  • Bool value indicates that whether to use the front camera when it start video call. device. The default value is true.

    Since

    1.0.0

    Declaration

    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.0

    Declaration

    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.0

    Declaration

    Swift

    public var isVideoEnabled: Bool { get set }
  • Sets up voice call options. isVideoEnabled has false 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 assigned true as a default value.

    isVideoEnabled

    Bool object assigned true as a default value.

    localVideoView

    SendBirdVideoView object to show local video. Default value is nil

    remoteVideoView

    SendBirdVideoView object to show remote video. Default value is nil

  • Undocumented

    Declaration

    Swift

    public convenience override init()
  • Returns a copied instance of the CallOptions.

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any