9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement
ts
function startMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void;

Defined in: connectivity/index.d.ts:47

Starts monitoring the connection type.

Parameters

ParameterTypeDescription
connectionTypeChangedCallback(newConnectionType: number) => voidA function that will be called when the connection type changes.

Returns

void