CallOptions
@available(iOS 12.0, *)
@objc(BDKCallOptions)
public class CallOptions : NSObject
A value object representing the options used when creating a call.
-
A value indicating whether the call can be recorded or not.
When the value of this property is
CallRecordingType.nonethe call won’t be recorded.Since
3.0.0Declaration
Swift
@objc public private(set) var recordingType: CallRecordingType { get } -
The maximum duration in seconds for the call. If the value is zero the call will last until all participants have left.
Declaration
Swift
@objc public private(set) var maximumDuration: UInt { get }
-
The call type.
Declaration
Swift
@objc public private(set) var callType: Bandyer.CallType { get } -
Returns a flag indicating whether the call type is audio / video, or not.
Declaration
Swift
@objc public func isAudioVideo() -> BoolReturn Value
a flag indicating whether the call type is audio / video, or not.
-
Returns a flag indicating whether the call type is audio upgradable, or not.
Declaration
Swift
@objc public func isAudioUpgradable() -> BoolReturn Value
a flag indicating whether the call type is audio upgradable, or not.
-
Returns a flag indicating whether the call type is audio only, or not.
Declaration
Swift
@objc public func isAudioOnly() -> BoolReturn Value
a flag indicating whether the call type is audio only, or not.
-
A convenience initialiser creating a
CallOptionsinstance setting itscallTypeto the value provided as argument. TherecordingTypevalue will be set toCallRecordingType.none. ThemaximumDurationvalue will be set to zero (call will last until all participants have left the call).Declaration
Swift
@objc(initWithCallType:) public convenience init(callType: Bandyer.CallType)Parameters
callTypeThe
callTypeof the call.Return Value
A
CallOptionsinstance with thecallTypeprovided as argument and therecordingTypeandmaximumDurationproperties set to default values. -
A convenience initialiser creating a
CallOptionsinstance setting thecallTypeand therecordingTypeproperties to the values provided as arguments. ThemaximumDurationvalue will be set to zero (the call will last until all participants have left the call).Since
3.0.0
Declaration
Swift
@objc(initWithCallType:recordingType:) public convenience init(callType: Bandyer.CallType, recordingType: CallRecordingType)Parameters
callTypeThe
callTypeof the call.recordingTypeThe
recordingTypefor the call.Return Value
A
CallOptionsinstance with thecallTypeandrecordingTypeproperties set to the values provided as arguments. ThemaximumDurationproperty will be set to the default value (0). -
A convenience initialiser creating a
CallOptionsinstance setting thecallTypeand themaximumDurationproperties to the values provided as arguments. TherecordingTypevalue will be set toCallRecordingType.none.Declaration
Swift
@objc(initWithCallType:duration:) public convenience init(callType: Bandyer.CallType, duration: UInt)Parameters
callTypeThe
callTypeof the call.durationThe
maximumDurationof the call expressed in seconds. A value of zero means the call will last until all participants have left.Return Value
A
CallOptionsinstance with thecallTypeandmaximumDurationproperties set to the values provided as arguments. TherecordingTypevalue will be set toCallRecordingType.none. -
The designated initialiser creating a
CallOptionsinstance setting itscallType,recordingTypeandmaximumDurationproperties to the values provided as arguments.Since
3.0.0
Declaration
Swift
@objc(initWithCallType:recordingType:duration:) public init(callType: Bandyer.CallType, recordingType: CallRecordingType, duration: UInt)Parameters
callTypeThe
callTypeof the call.recordingTypeThe
recordingTypefor the call.durationThe
maximumDurationof the call expressed in seconds. A value of zero means the call will last until all participants have left.Return Value
A
CallOptionsinstance with thecallType,recordingTypeandmaximumDurationproperties set to the values provided as arguments.
-
Creates a
CallOptionsinstance setting thecallTypeto the value provided as argument. TherecordingTypevalue will be set toCallRecordingType.none. ThemaximumDurationvalue will be set to zero (call will last until all participants have left the call).Declaration
Swift
@objc(optionsWithCallType:) public static func options(with callType: Bandyer.CallType) -> Bandyer.CallOptionsParameters
callTypeThe
callTypeof the call.Return Value
A
CallOptionsinstance with thecallTypeprovided as argument and therecordingTypeandmaximumDurationproperties set to default values. -
Creates a
CallOptionsinstance setting thecallTypeand therecordingTypeproperties to the values provided as arguments. ThemaximumDurationvalue will be set to zero (the call will last until all participants have left the call).Since
3.0.0
Declaration
Swift
@objc(optionsWithCallType:recordingType:) public static func options(with callType: Bandyer.CallType, recordingType: CallRecordingType) -> Bandyer.CallOptionsParameters
callTypeThe
callTypeof the call.recordingTypeThe
recordingTypefor the call.Return Value
A
CallOptionsinstance with thecallTypeandrecordingTypeproperties set to the values provided as arguments. ThemaximumDurationproperty will be set to the default value (0). -
Creates a
CallOptionsinstance setting thecallTypeand themaximumDurationproperties to the values provided as arguments. TherecordingTypevalue will be set toCallRecordingType.none.Declaration
Swift
@objc(optionsWithCallType:duration:) public static func options(with callType: Bandyer.CallType, duration: UInt) -> Bandyer.CallOptionsParameters
callTypeThe
callTypeof the call.durationThe
maximumDurationof the call expressed in seconds. A value of zero means the call will last until all participants have left.Return Value
A
CallOptionsinstance with thecallTypeandmaximumDurationproperties set to the values provided as arguments. TherecordingTypevalue will be set toCallRecordingType.none. -
Creates a
CallOptionsinstance setting itscallType,recordingTypeandmaximumDurationproperties to the values provided as arguments.Since
3.0.0
Declaration
Swift
@objc(optionsWithCallType:recordingType:duration:) public static func options(with callType: Bandyer.CallType, recordingType: CallRecordingType, duration: UInt) -> Bandyer.CallOptionsParameters
callTypeThe
callTypeof the call.recordingTypeThe
recordingTypefor the call.durationThe
maximumDurationof the call expressed in seconds. A value of zero means the call will last until all participants have left.Return Value
A
CallOptionsinstance with thecallType,recordingTypeandmaximumDurationproperties set to the values provided as arguments.
View on GitHub
CallOptions Class Reference