AxpCall interface

interface AxpCall {
    addOnCallEndedCallback(callback: ((call: AxpCall, event: AxpEndCallEvent) => void)): void;
    addOnCallEstablishedCallback(callback: ((call: AxpCall) => void)): void;
    addOnCallFailedCallback(callback: ((call: AxpCall, exception: AxpCallException) => void)): void;
    addOnCallServiceAvailableCallback(callback: ((call: AxpCall) => void)): void;
    addOnCallServiceUnavailableCallback(callback: ((call: AxpCall) => void)): void;
    addOnCallStartedCallback(callback: ((call: AxpCall) => void)): void;
    addOnMediaConnectedCallback(callback: ((call: AxpCall) => void)): void;
    addOnMediaDisconnectedCallback(callback: ((call: AxpCall) => void)): void;
    addOnMediaFailedCallback(callback: ((call: AxpCall) => void)): void;
    disableMic(): Promise<void | AxpCallException>;
    enableMic(): Promise<void | AxpCallException>;
    end(): void;
    getCallId(): string;
    getEstablishedTime(): Date;
    isAudioMuted(): boolean;
    isMediaConnected(): boolean;
    isServiceAvailable(): boolean;
    isSpeakerMuted(): boolean;
    muteAudio(): Promise<void | AxpCallException>;
    muteSpeaker(): Promise<void | AxpCallException>;
    removeOnCallEndedCallback(callback: ((event: any) => void)): void;
    removeOnCallEstablishedCallback(callback: ((event: any) => void)): void;
    removeOnCallFailedCallback(callback: ((event: any) => void)): void;
    removeOnCallServiceAvailableCallback(callback: ((event: any) => void)): void;
    removeOnCallServiceUnavailableCallback(callback: ((event: any) => void)): void;
    removeOnCallStartedCallback(callback: ((event: any) => void)): void;
    removeOnMediaFailedCallback(callback: ((event: any) => void)): void;
    sendDTMF(dtmf: AxpDtmfTone): Promise<void | AxpCallException>;
    setAudioMode(audioMode: AxpAudioMode): Promise<void | AxpCallException>;
    setNoiseReductionSetting(setting: AxpNoiseReductionSetting): Promise<void | AxpCallException>;
    setWebCollaboration(enabled: boolean): Promise<void | AxpCallException>;
    start(): void;
    unmuteAudio(): Promise<void | AxpCallException>;
    unmuteSpeaker(): Promise<void | AxpCallException>;
}

Methods

  • Adds a callback function to be invoked when the call is ended.

    Parameters

    Returns void

  • Adds a callback function to be invoked when the call is established.

    Parameters

    • callback: ((call: AxpCall) => void)
        • (call): void
        • Parameters

          Returns void

    Returns void

  • Adds a callback function to be invoked when there is a call failure.

    Parameters

    Returns void

  • Adds a callback function to be invoked when the call service is available.

    Parameters

    • callback: ((call: AxpCall) => void)
        • (call): void
        • Parameters

          Returns void

    Returns void

  • Adds a callback function to be invoked when the call service is unavailable.

    Parameters

    • callback: ((call: AxpCall) => void)
        • (call): void
        • Parameters

          Returns void

    Returns void

  • Adds a callback function to be invoked when the call is started.

    Parameters

    • callback: ((call: AxpCall) => void)
        • (call): void
        • Parameters

          Returns void

    Returns void

  • Adds a callback function to be invoked when media is connected.

    Parameters

    • callback: ((call: AxpCall) => void)
        • (call): void
        • Parameters

          Returns void

    Returns void

  • Adds a callback function to be invoked when media is disconnected.

    Parameters

    • callback: ((call: AxpCall) => void)
        • (call): void
        • Parameters

          Returns void

    Returns void

  • Adds a callback function to be invoked when media failed, i.e. no longer available until it is recovered.

    Parameters

    • callback: ((call: AxpCall) => void)
        • (call): void
        • Parameters

          Returns void

    Returns void

  • Ends the call

    Returns void

  • Returns the call id

    Returns string

  • Returns the call estabsliehd time

    Returns Date

  • Returns true if audio is muted; otherwise, false.

    Returns boolean

  • Returns true if the call media is connected; otherwise, false.

    Returns boolean

  • Returns true if service is available; otherwise, false.

    Returns boolean

  • Returns true if the speaker is muted; otherwise, false.

    Returns boolean

  • Parameters

    • callback: ((event: any) => void)
        • (event): void
        • Parameters

          • event: any

          Returns void

    Returns void

  • Parameters

    • callback: ((event: any) => void)
        • (event): void
        • Parameters

          • event: any

          Returns void

    Returns void

  • Parameters

    • callback: ((event: any) => void)
        • (event): void
        • Parameters

          • event: any

          Returns void

    Returns void

  • Parameters

    • callback: ((event: any) => void)
        • (event): void
        • Parameters

          • event: any

          Returns void

    Returns void

  • Parameters

    • callback: ((event: any) => void)
        • (event): void
        • Parameters

          • event: any

          Returns void

    Returns void

  • Parameters

    • callback: ((event: any) => void)
        • (event): void
        • Parameters

          • event: any

          Returns void

    Returns void

  • Parameters

    • callback: ((event: any) => void)
        • (event): void
        • Parameters

          • event: any

          Returns void

    Returns void

  • Starts the call

    Returns void