VoiceCall

public protocol VoiceCall : AnyObject

The call object interface.

Properties

  • 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 adopt VoiceCallStateObserverProtocol and subscribe for changes.

    Declaration

    Swift

    var state: VoiceCallState { get }
  • The type of the call - voip or pstn.

    Declaration

    Swift

    var type: CallType { get }
  • The direction of the call - inbound or outbound.

    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 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 }

Callbacks

Functions

Notifications

  • It registers observer object.

    Declaration

    Swift

    func addObserver(_ observer: AnyObject)
  • It removes the observer object registration.

    Declaration

    Swift

    func removeObserver(_ observer: AnyObject)