Liking cljdoc? Tell your friends :D

web.NetworkInformation

The NetworkInformation interface provides information about the a device is using to communicate with the network and provides means for scripts to be notified if the connection type changes. NetworkInformation interfaces cannot be instantiated. It is instead through the connection property of the web.Navigator interface.

The NetworkInformation interface provides information about the
a device is using to communicate with the network and provides
means for scripts to be notified if the connection type changes.
NetworkInformation interfaces cannot be instantiated. It is instead
through the connection property of the `web.Navigator` interface.
raw docstring

(downlink this)

Property.

The downlink read-only property of the web.NetworkInformation returns the effective bandwidth estimate in megabits per second, to the nearest multiple of 25 kilobits per seconds. This value based on recently observed application layer throughput across active connections, excluding connections made to a private address In the absence of recent bandwidth measurement data, the attribute is determined by the properties of the underlying connection

var downLink = NetworkInformation.downlink

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/downlink

Property.

The downlink read-only property of the `web.NetworkInformation`
returns the effective bandwidth estimate in megabits per second,
to the nearest multiple of 25 kilobits per seconds. This value
based on recently observed application layer throughput across
active connections, excluding connections made to a private address
In the absence of recent bandwidth measurement data, the attribute
is determined by the properties of the underlying connection

`var downLink = NetworkInformation.downlink`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/downlink`
sourceraw docstring

(downlink-max this)

Property.

The NetworkInformation.downlinkMax read-only property returns maximum downlink speed, in megabits per second (Mbps), for the connection technology.

var max = NetworkInformation.downlinkMax

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/downlinkMax

Property.

The NetworkInformation.downlinkMax read-only property returns
maximum downlink speed, in megabits per second (Mbps), for the
connection technology.

`var max = NetworkInformation.downlinkMax`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/downlinkMax`
sourceraw docstring

effective-typecljs

(effective-type this)

Property.

The effectiveType read-only property of the web.NetworkInformation returns the effective type of the connection meaning one of 'slow-2g', '3g', or '4g'. This value is determined using a combination of observed, round-trip time and downlink values.

var effectiveType = NetworkInformation.effectiveType

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/effectiveType

Property.

The effectiveType read-only property of the `web.NetworkInformation`
returns the effective type of the connection meaning one of 'slow-2g',
'3g', or '4g'. This value is determined using a combination of
observed, round-trip time and downlink values.

`var effectiveType = NetworkInformation.effectiveType`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/effectiveType`
sourceraw docstring

onchangecljs

(onchange this)

Property.

The NetworkInformation.onchange event handler contains the code is fired when connection information changes, and the change received by the web.NetworkInformation object.

netInfo.onchange = function() { ... }

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/onchange

Property.

The NetworkInformation.onchange event handler contains the code
is fired when connection information changes, and the change
received by the `web.NetworkInformation` object.

`netInfo.onchange = function() { ... }`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/onchange`
sourceraw docstring

rttcljs

(rtt this)

Property.

The NetworkInformation.rtt read-only property returns the estimated round-trip time of the current connection, rounded to the nearest of 25 milliseconds. This value is based on recently observed RTT measurements across recently active connections. It excludes made to a private address space. If no recent measurement data available, the value is based on the properties of the underlying technology.

rtt = NetworkInformation.rtt

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/rtt

Property.

The NetworkInformation.rtt read-only property returns the estimated
round-trip time of the current connection, rounded to the nearest
of 25 milliseconds. This value is based on recently observed
RTT measurements across recently active connections. It excludes
made to a private address space. If no recent measurement data
available, the value is based on the properties of the underlying
technology.

`rtt = NetworkInformation.rtt`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/rtt`
sourceraw docstring

save-datacljs

(save-data this)

Property.

The NetworkInformation.saveData read-only property of the web.NetworkInformation returns true if the user has set a reduced data usage option the user agent.

var saveData = NetworkInformation.saveData;

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/saveData

Property.

The NetworkInformation.saveData read-only property of the `web.NetworkInformation`
returns true if the user has set a reduced data usage option
the user agent.

`var saveData = NetworkInformation.saveData;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/saveData`
sourceraw docstring

set-downlink!cljs

(set-downlink! this val)

Property.

The downlink read-only property of the web.NetworkInformation returns the effective bandwidth estimate in megabits per second, to the nearest multiple of 25 kilobits per seconds. This value based on recently observed application layer throughput across active connections, excluding connections made to a private address In the absence of recent bandwidth measurement data, the attribute is determined by the properties of the underlying connection

var downLink = NetworkInformation.downlink

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/downlink

Property.

The downlink read-only property of the `web.NetworkInformation`
returns the effective bandwidth estimate in megabits per second,
to the nearest multiple of 25 kilobits per seconds. This value
based on recently observed application layer throughput across
active connections, excluding connections made to a private address
In the absence of recent bandwidth measurement data, the attribute
is determined by the properties of the underlying connection

`var downLink = NetworkInformation.downlink`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/downlink`
sourceraw docstring

set-effective-type!cljs

(set-effective-type! this val)

Property.

The effectiveType read-only property of the web.NetworkInformation returns the effective type of the connection meaning one of 'slow-2g', '3g', or '4g'. This value is determined using a combination of observed, round-trip time and downlink values.

var effectiveType = NetworkInformation.effectiveType

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/effectiveType

Property.

The effectiveType read-only property of the `web.NetworkInformation`
returns the effective type of the connection meaning one of 'slow-2g',
'3g', or '4g'. This value is determined using a combination of
observed, round-trip time and downlink values.

`var effectiveType = NetworkInformation.effectiveType`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/effectiveType`
sourceraw docstring

set-onchange!cljs

(set-onchange! this val)

Property.

The NetworkInformation.onchange event handler contains the code is fired when connection information changes, and the change received by the web.NetworkInformation object.

netInfo.onchange = function() { ... }

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/onchange

Property.

The NetworkInformation.onchange event handler contains the code
is fired when connection information changes, and the change
received by the `web.NetworkInformation` object.

`netInfo.onchange = function() { ... }`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/onchange`
sourceraw docstring

typecljs

(type this)

Property.

The NetworkInformation.type read-only property returns the type connection a device is using to communicate with the network.

var type = netInfo.type

See also: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/type

Property.

The NetworkInformation.type read-only property returns the type
connection a device is using to communicate with the network.

`var type = netInfo.type`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/type`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close