NetworkInformationService

Provides access to the Network Information API. Reports online status, connection type, effective type, downlink speed, and round-trip time.

API Variant
TypeScriptexample.ts
import { NetworkInformationService } from '@angular-helpers/browser-web-apis'

# Methods

MethodSignatureReturnsDescription
getSnapshotgetSnapshot(): NetworkInformationNetworkInformationPublic method getSnapshot.
watchwatch(): Observable<NetworkInformation>Observable<NetworkInformation>Public method watch.
LCP N/A
CLS N/A
INP N/A