kaios-types
    Preparing search index...

    Interface MozWifiManager

    Available only if "Navigator::HasWifiManagerSupport" is true. UnsafeInPrerendering

    Provides an API to manage Wi-Fi connections.

    interface MozWifiManager {
        capabilities?: MozWifiCapabilities;
        connection: MozWifiConnection;
        connectionInformation?: MozWifiConnectionInfo;
        enabled: boolean;
        macAddress: string;
        onconnectioninfoupdate: EventHandler;
        ondisabled: EventHandler;
        onenabled: EventHandler;
        onstationinfoupdate: EventHandler;
        onstatuschange: EventHandler;
        addEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | AddEventListenerOptions,
        ): void;
        associate(network: MozWifiNetwork): DOMRequest;
        deleteCert(certNickname: string): DOMRequest;
        dispatchEvent(event: Event): boolean;
        forget(network: MozWifiNetwork): DOMRequest;
        getImportedCerts(): DOMRequest;
        getKnownNetworks(): DOMRequest;
        getNetworks(): DOMRequest;
        importCert(
            certBlob: Blob,
            certPassword: string,
            certNickname: string,
        ): DOMRequest;
        removeEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | EventListenerOptions,
        ): void;
        setHttpProxy(network: MozWifiNetwork, info: any): DOMRequest;
        setPowerSavingMode(enabled: boolean): DOMRequest;
        setStaticIpMode(
            network: MozWifiNetwork,
            info?: IPConfiguration,
        ): DOMRequest;
        setWifiEnabled(enabled: boolean): DOMRequest;
        wps(detail?: WifiWPSInfo): DOMRequest;
    }

    Hierarchy

    • EventTarget
      • MozWifiManager
    Index

    Properties

    capabilities?: MozWifiCapabilities

    The capabilities of the Wi-Fi hardware. Note: MozWifiCapabilities is not defined in the provided IDL

    connection: MozWifiConnection

    The current connection status.

    connectionInformation?: MozWifiConnectionInfo

    Information about the current connection.

    enabled: boolean

    Whether Wi-Fi is currently enabled.

    macAddress: string

    The MAC address of the Wi-Fi interface.

    onconnectioninfoupdate: EventHandler

    Event handler for connection information updates (e.g. signal strength).

    ondisabled: EventHandler

    Event handler for when Wi-Fi is disabled.

    onenabled: EventHandler

    Event handler for when Wi-Fi is enabled.

    onstationinfoupdate: EventHandler

    Event handler for station information updates.

    onstatuschange: EventHandler

    Event handler for status changes.

    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

    • Imports a certificate.

      Parameters

      • certBlob: Blob

        The certificate data.

      • certPassword: string

        The password for the certificate.

      • certNickname: string

        The nickname for the certificate.

      Returns DOMRequest

    • 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