kaios-types
    Preparing search index...

    Interface TelephonyCall

    dom.telephony.enabled

    interface TelephonyCall {
        disconnectedReason: TelephonyCallDisconnectedReason | null;
        emergency: boolean;
        error: any;
        group: TelephonyCallGroup | null;
        id: number;
        mergeable: boolean;
        onalerting: EventHandler;
        onconnected: EventHandler;
        ondialing: EventHandler;
        ondisconnected: EventHandler;
        onerror: EventHandler;
        ongroupchange: EventHandler;
        onheld: EventHandler;
        onstatechange: EventHandler;
        secondId: number | null;
        serviceId: number;
        state: TelephonyCallState;
        switchable: boolean;
        addEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | AddEventListenerOptions,
        ): void;
        answer(): Promise<void>;
        dispatchEvent(event: Event): boolean;
        hangUp(): Promise<void>;
        hold(): Promise<void>;
        removeEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | EventListenerOptions,
        ): void;
        resume(): Promise<void>;
    }

    Hierarchy

    • EventTarget
      • TelephonyCall
    Index

    Properties

    disconnectedReason: TelephonyCallDisconnectedReason | null

    The reason why the call was disconnected, if applicable.

    emergency: boolean

    Indicates whether this is an emergency call.

    error: any

    The error associated with the call, if any.

    group: TelephonyCallGroup | null

    The group the call belongs to, if any.

    id: number

    The unique identifier for the call.

    mergeable: boolean

    Indicates whether the call can be merged into a conference.

    onalerting: EventHandler

    Event handler for when the call is alerting (ringing).

    onconnected: EventHandler

    Event handler for when the call is connected.

    ondialing: EventHandler

    Event handler for when the call is dialing.

    ondisconnected: EventHandler

    Event handler for when the call is disconnected.

    onerror: EventHandler

    Event handler for when an error occurs.

    ongroupchange: EventHandler

    Event handler for when the call group changes.

    onheld: EventHandler

    Event handler for when the call is held.

    onstatechange: EventHandler

    Event handler for when the call state changes.

    secondId: number | null

    The second unique identifier for the call, if any.

    serviceId: number

    The service ID associated with the call.

    The current state of the call.

    switchable: boolean

    Indicates whether the call can be switched.

    Methods

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | EventListenerOptions

      Returns void