This API provides the ability to determine the status of and detect changes in the network connection. This API can only be used in privileged extensions.

Permissions: networkStatus

Not allowed in: Content scripts, Devtools pages

NetworkLinkInfo
_NetworkLinkInfoStatus
_NetworkLinkInfoType
onConnectionChanged
getLinkInfo
_NetworkLinkInfoStatus: "unknown" | "up" | "down"

Status of the network link, if "unknown" then link is usually assumed to be "up"

_NetworkLinkInfoType:
    | "unknown"
    | "ethernet"
    | "usb"
    | "wifi"
    | "wimax"
    | "mobile"

If known, the type of network connection that is avialable.

onConnectionChanged: WebExtEvent<(details: NetworkLinkInfo) => void>

Fired when the network connection state changes.

  • Returns the $(ref:NetworkLinkInfo} of the current network connection.

    Returns Promise<NetworkLinkInfo>