Skip to content

Interface: NetworkStatus ​

Defined in: types/desktop-engine.d.ts:4138

The network, in SystemStatus.network; never which network, nor any address

Properties ​

expensive ​

ts
readonly expensive: boolean;

Defined in: types/desktop-engine.d.ts:4144

The connection costs money or data, e.g. a phone's Personal Hotspot


interface ​

ts
readonly interface: "other" | "wifi" | "ethernet" | "cellular" | null;

Defined in: types/desktop-engine.d.ts:4142

How it connects; null while offline


online ​

ts
readonly online: boolean;

Defined in: types/desktop-engine.d.ts:4140

Whether the Mac can reach the internet


received ​

ts
readonly received: number;

Defined in: types/desktop-engine.d.ts:4153

Bytes received, as the network interfaces count them: each from when it came up (usually when the Mac started) for the ones there at the first reading, and all that the ones that came later received


receivedPerSecond ​

ts
readonly receivedPerSecond: number;

Defined in: types/desktop-engine.d.ts:4146

Bytes per second received over the last reading, all connections together


sent ​

ts
readonly sent: number;

Defined in: types/desktop-engine.d.ts:4155

Bytes sent, counted as received is


sentPerSecond ​

ts
readonly sentPerSecond: number;

Defined in: types/desktop-engine.d.ts:4148

Bytes per second sent over the last reading

The SDK is released under the Apache License 2.0