ActiveVoiceCall

public class ActiveVoiceCall

Enables controlling an active voice call and displaying its properties.

  • The E164-formatted local phone number participating in this voice call.

    Declaration

    Swift

    public let localPhoneNumber: String
  • The E164-formatted remote phone number participating in this voice call.

    Declaration

    Swift

    public let remotePhoneNumber: String
  • A Boolean value indicating whether outgoing call audio is muted.

    Declaration

    Swift

    public internal(set) var isMuted: Bool { get }
  • A Boolean value that specifies if call audio is being routed through the built-in speaker.

    Declaration

    Swift

    public var isOnSpeaker: Bool { get }
  • Disconnects the active call. If successful, callbacks added via subscribe(onDisconnection:) will be triggered.

    Declaration

    Swift

    public func disconnect(completion: @escaping (Swift.Result<Void, Error>) -> Void)
  • Sets whether outgoing call audio should be muted.

    Declaration

    Swift

    public func setMuted(_ muted: Bool)

    Parameters

    speaker

    If true, outgoing call audio should be muted.

  • Sets whether call audio should be routed through the speakers.

    Declaration

    Swift

    public func setAudioOutput(toSpeaker: Bool)

    Parameters

    toSpeaker

    If true, audio should be routed through the speakers.