kaios-types
    Preparing search index...

    Interface MozMobileConnection

    dom.mobileconnection.enabled

    interface MozMobileConnection {
        CALL_BARRING_PROGRAM_ALL_INCOMING: number;
        CALL_BARRING_PROGRAM_ALL_OUTGOING: number;
        CALL_BARRING_PROGRAM_ALL_SERVICE: number;
        CALL_BARRING_PROGRAM_INCOMING_ROAMING: number;
        CALL_BARRING_PROGRAM_INCOMING_SERVICE: number;
        CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL: number;
        CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL_EXCEPT_HOME: number;
        CALL_BARRING_PROGRAM_OUTGOING_SERVICE: number;
        CALL_FORWARD_ACTION_DISABLE: number;
        CALL_FORWARD_ACTION_ENABLE: number;
        CALL_FORWARD_ACTION_ERASURE: number;
        CALL_FORWARD_ACTION_QUERY_STATUS: number;
        CALL_FORWARD_ACTION_REGISTRATION: number;
        CALL_FORWARD_REASON_ALL_CALL_FORWARDING: number;
        CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING: number;
        CALL_FORWARD_REASON_MOBILE_BUSY: number;
        CALL_FORWARD_REASON_NO_REPLY: number;
        CALL_FORWARD_REASON_NOT_REACHABLE: number;
        CALL_FORWARD_REASON_UNCONDITIONAL: number;
        CLIR_DEFAULT: number;
        CLIR_INVOCATION: number;
        CLIR_SUPPRESSION: number;
        data: MozMobileConnectionInfo;
        ICC_SERVICE_CLASS_DATA: number;
        ICC_SERVICE_CLASS_DATA_ASYNC: number;
        ICC_SERVICE_CLASS_DATA_SYNC: number;
        ICC_SERVICE_CLASS_FAX: number;
        ICC_SERVICE_CLASS_MAX: number;
        ICC_SERVICE_CLASS_PACKET: number;
        ICC_SERVICE_CLASS_PAD: number;
        ICC_SERVICE_CLASS_SMS: number;
        ICC_SERVICE_CLASS_VOICE: number;
        iccId: string | null;
        lastKnownHomeNetwork: string;
        lastKnownNetwork: string;
        networkSelectionMode: MobileNetworkSelectionMode | null;
        oncfstatechange: EventHandler;
        onclirmodechange: EventHandler;
        ondatachange: EventHandler;
        ondataerror: EventHandler;
        onemergencycbmodechange: EventHandler;
        oniccchange: EventHandler;
        onotastatuschange: EventHandler;
        onradiostatechange: EventHandler;
        onvoicechange: EventHandler;
        radioState: MobileRadioState | null;
        supportedNetworkTypes: MobileNetworkType[];
        voice: MozMobileConnectionInfo;
        addEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | AddEventListenerOptions,
        ): void;
        changeCallBarringPassword(options?: MozCallBarringOptions): DOMRequest;
        dispatchEvent(event: Event): boolean;
        exitEmergencyCbMode(): DOMRequest;
        getCallBarringOption(options?: MozCallBarringOptions): DOMRequest;
        getCallForwardingOption(reason: number): DOMRequest;
        getCallingLineIdRestriction(): DOMRequest;
        getCallWaitingOption(): DOMRequest;
        getNetworks(): DOMRequest;
        getPreferredNetworkType(): DOMRequest;
        getRoamingPreference(): DOMRequest;
        getVoicePrivacyMode(): DOMRequest;
        removeEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | EventListenerOptions,
        ): void;
        selectNetwork(network: MozMobileNetworkInfo): DOMRequest;
        selectNetworkAutomatically(): DOMRequest;
        setCallBarringOption(options?: MozCallBarringOptions): DOMRequest;
        setCallForwardingOption(options?: MozCallForwardingOptions): DOMRequest;
        setCallingLineIdRestriction(mode: number): DOMRequest;
        setCallWaitingOption(enabled: boolean): DOMRequest;
        setPreferredNetworkType(type: MobilePreferredNetworkType): DOMRequest;
        setRadioEnabled(enabled: boolean): DOMRequest;
        setRoamingPreference(mode: MobileRoamingMode): DOMRequest;
        setVoicePrivacyMode(enabled: boolean): DOMRequest;
    }

    Hierarchy

    • EventTarget
      • MozMobileConnection
    Index

    Properties

    Methods

    Properties

    CALL_BARRING_PROGRAM_ALL_INCOMING: number

    Call Barring Program: All Incoming

    CALL_BARRING_PROGRAM_ALL_OUTGOING: number

    Call Barring Program: All Outgoing

    CALL_BARRING_PROGRAM_ALL_SERVICE: number

    Call Barring Program: All Service

    CALL_BARRING_PROGRAM_INCOMING_ROAMING: number

    Call Barring Program: Incoming Roaming

    CALL_BARRING_PROGRAM_INCOMING_SERVICE: number

    Call Barring Program: Incoming Service

    CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL: number

    Call Barring Program: Outgoing International

    CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL_EXCEPT_HOME: number

    Call Barring Program: Outgoing International Except Home

    CALL_BARRING_PROGRAM_OUTGOING_SERVICE: number

    Call Barring Program: Outgoing Service

    CALL_FORWARD_ACTION_DISABLE: number

    Call Forward Action: Disable

    CALL_FORWARD_ACTION_ENABLE: number

    Call Forward Action: Enable

    CALL_FORWARD_ACTION_ERASURE: number

    Call Forward Action: Erasure

    CALL_FORWARD_ACTION_QUERY_STATUS: number

    Call Forward Action: Query Status

    CALL_FORWARD_ACTION_REGISTRATION: number

    Call Forward Action: Registration

    CALL_FORWARD_REASON_ALL_CALL_FORWARDING: number

    Call Forward Reason: All Call Forwarding

    CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING: number

    Call Forward Reason: All Conditional Call Forwarding

    CALL_FORWARD_REASON_MOBILE_BUSY: number

    Call Forward Reason: Mobile Busy

    CALL_FORWARD_REASON_NO_REPLY: number

    Call Forward Reason: No Reply

    CALL_FORWARD_REASON_NOT_REACHABLE: number

    Call Forward Reason: Not Reachable

    CALL_FORWARD_REASON_UNCONDITIONAL: number

    Call Forward Reason: Unconditional

    CLIR_DEFAULT: number

    CLIR Mode: Default

    CLIR_INVOCATION: number

    CLIR Mode: Invocation

    CLIR_SUPPRESSION: number

    CLIR Mode: Suppression

    Information about the data connection.

    mobileconnection

    ICC_SERVICE_CLASS_DATA: number

    ICC Service Class: Data

    ICC_SERVICE_CLASS_DATA_ASYNC: number

    ICC Service Class: Data Async

    ICC_SERVICE_CLASS_DATA_SYNC: number

    ICC Service Class: Data Sync

    ICC_SERVICE_CLASS_FAX: number

    ICC Service Class: Fax

    ICC_SERVICE_CLASS_MAX: number

    ICC Service Class: Max

    ICC_SERVICE_CLASS_PACKET: number

    ICC Service Class: Packet

    ICC_SERVICE_CLASS_PAD: number

    ICC Service Class: PAD

    ICC_SERVICE_CLASS_SMS: number

    ICC Service Class: SMS

    ICC_SERVICE_CLASS_VOICE: number

    ICC Service Class: Voice

    iccId: string | null

    The ICC ID (Integrated Circuit Card Identifier) of the SIM card.

    mobileconnection

    lastKnownHomeNetwork: string

    The name of the last known home network.

    mobilenetwork

    lastKnownNetwork: string

    The name of the last known network.

    mobilenetwork

    networkSelectionMode: MobileNetworkSelectionMode | null

    The network selection mode (automatic or manual).

    mobileconnection

    oncfstatechange: EventHandler

    Event handler for when call forwarding state changes.

    onclirmodechange: EventHandler

    Event handler for when CLIR mode changes.

    ondatachange: EventHandler

    Event handler for when data connection info changes.

    ondataerror: EventHandler

    Event handler for when a data error occurs.

    onemergencycbmodechange: EventHandler

    Event handler for when emergency callback mode changes.

    oniccchange: EventHandler

    Event handler for when ICC info changes.

    onotastatuschange: EventHandler

    Event handler for when OTA status changes.

    onradiostatechange: EventHandler

    Event handler for when radio state changes.

    onvoicechange: EventHandler

    Event handler for when voice connection info changes.

    radioState: MobileRadioState | null

    The state of the mobile radio.

    mobileconnection

    supportedNetworkTypes: MobileNetworkType[]

    The list of supported network types.

    mobileconnection

    Information about the voice connection.

    mobileconnection

    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