Protocol
TalkCall
@objc public protocol TalkCall: AnyObject
Represents a call created by Talk SDK.
Responsibility of this class is to provide set of basic operations related to the ongoing call, like muting, disconnecting or changing audio output type.
Relationships
Conforms To
AnyObject
Requirements
muted
var muted: Bool
Property that defines if the call is muted.
Mutes or un-mutes the call depending on the value of muted.
Default value is false
.
duration
var duration: TimeInterval
Property that shows duration of call in seconds.
Default value is 0
. It will be 0
until the call is started.
disconnect()
func disconnect()
Ends the ongoing call.
If the call was not disconnected before - then the TalkProvider.call.onStatusChange
will be called with CallStatus.disconnected
.
If the call was already disconnected - then the TalkProvider.call.onStatusChange
will not be called.
audioOutput
var audioOutput: AudioOutput
Device specified audio output.
Default value is AudioOutput.headset
.