Login to follow
Network Information

Network Information (ODC)

Stable version 0.1.0 (Compatible with ODC)
Uploaded on 12 July 2024 by Collabera Technologies Private Limited, Inc.
Network Information

Network Information (ODC)

Documentation
0.1.0

The Network Information library provides information about the network connection of a user's device. This API enables web applications to understand the type of network the device is connected to and respond appropriately, such as adjusting data usage or quality settings.


The Network Information library has a single public client action which returns network information having below output parameters -


Output parameters:

  • EffectiveType: Indicates the general type of connection a user has, such as 'wifi', '4g', '3g', '2g', or 'slow-2g'.
  • Downlink: Provides an estimate of the downlink speed in megabits per second.
  • Rtt: Gives an estimate of the round-trip time in milliseconds.
  • Error: Error, if any.