Call

public class Call

Represent each call that agent will pass or receive.

  • Instance of RTC Client. Each call has one RTC Client attached.

    Declaration

    Swift

    internal let rtcClient: RTCClient
  • Speaker state (on speaker or internal earphone).

    Declaration

    Swift

    internal var speakerState: Bool
  • Is the call on hold state or not.

    Declaration

    Swift

    internal var isPaused: Bool
  • Is the microphone muted on this call or not.

    Declaration

    Swift

    internal var isMuted: Bool
  • ID of the call

    Declaration

    Swift

    public var callID: String
  • Verto session ID to which the call is linked.

    Declaration

    Swift

    public var sessID: String
  • Name of the caller.

    Declaration

    Swift

    public var callerName: String
  • Name of the recipient.

    Declaration

    Swift

    public var recipientName: String
  • Initializes a new call according to given informations.

    Declaration

    Swift

    public init(callID: String, sessID: String, callerName: String, recipientName: String)

    Parameters

    callID

    ID of the call (callID is a UUID generated randomly during call creation).

    sessID

    The session ID of the logged agent. This value is stored in VertoWebSocket class.

    callerName

    Name of the caller.

    recipientName

    Name of the recipient.

    Return Value

    A Ziwo call object.

  • Method to set activity of the microphone during a call.

    Declaration

    Swift

    public func setMicrophoneEnabled(_ value: Bool)

    Parameters

    value

    Boolean that defines the microphone activity.

  • Switch the audio call on speaker.

    Declaration

    Swift

    public func setSpeakerOn()
  • Switch the audio call on internal speaker.

    Declaration

    Swift

    public func setSpeakerOff()