VoiceCall
public protocol VoiceCall : AnyObject
The call object interface.
-
The unique local identifier. It is used for CallKit reporting.
Declaration
Swift
var uuid: UUID { get }
-
The remote call identifier. The empty string is set for outgoing call.
Declaration
Swift
var callId: String { get }
-
The state of call object (
connected
,disconnected
, etc). The client may adoptVoiceCallStateObserverProtocol
and subscribe for changes.Declaration
Swift
var state: VoiceCallState { get }
-
The type of the call -
voip
orpstn
.Declaration
Swift
var type: CallType { get }
-
The direction of the call -
inbound
oroutbound
.Declaration
Swift
var direction: CallDirection { get }
-
The locally assigned timestamp. It indicates the moment when call is registered by platform.
Declaration
Swift
var startTime: UInt { get }
-
The locally assigned timestamp. It is set when call is answered.
Declaration
Swift
var answeredTime: UInt { get }
-
The locally assigned timestamp. It is set on call disconnect.
Declaration
Swift
var deactivatedTime: UInt { get }
-
The connection quality indicator. It is driven by information coming from Voice Stack. The client may adopt
VoiceCallConnectionQualityObserverProtocol
and subscribe for changes.Declaration
Swift
var connectionQuality: CallConnectionQuality { get }
-
The state of the microphone. The client may change the microphone state by modifying this property.
Declaration
Swift
var muted: CallMutedState { get set }
-
It contains the information provided by the platform in the push notification payload. The
nil
is set for outgoing call.Declaration
Swift
var context: IncomingCallContext? { get }
-
It describes the remote peer on the call.
Declaration
Swift
var contact: Contact? { get }
-
It describes the reason for call fail.
Declaration
Swift
var callFailedReason: CallFailedReason? { get }
-
It is invoked on call state change.
Declaration
Swift
var stateChangedCallback: VoiceCallStateChangedCallback? { get set }
-
It is invoked on connection qulity change.
Declaration
Swift
var connectionQualityChangedCallback: VoiceCallConnectionQualityChangedCallback? { get set }
-
It is invoked on microphone state change.
Declaration
Swift
var mutedStateChangedCallback: VoiceCallMutedStateChangedCallback? { get set }
-
It hangs up the call.
Declaration
Swift
func hangup(_ completion: ((CallActionCompletionStatus) -> Void)?)
-
It puts the call on hold.
Declaration
Swift
func hold(_ completion: ((CallActionCompletionStatus) -> Void)?)
-
It resumes the call (unhold).
Declaration
Swift
func resume(_ completion: ((CallActionCompletionStatus) -> Void)?)
-
It registers observer object.
Declaration
Swift
func addObserver(_ observer: AnyObject)
-
It removes the observer object registration.
Declaration
Swift
func removeObserver(_ observer: AnyObject)