NetworkMonitor

A class responsible for monitoring network connectivity and determining the current connection type.

You can use this class to monitor network status changes and determine whether the device is connected to the internet via Wi-Fi, cellular, Ethernet, or an unknown connection.