Detect Ethernet Connection or LAN

Hi there.

Is there a way in Ionic or Angular to check if there is an Ethernet connection? The plugin ‘Network Capacitor Plugin API | Ionic Documentation’ only provides information about Wi-Fi or cellular connections. I want to detect if the device is in a LAN or WAN, and therefore I need it.

I’m a newbie and would be very happy about any tips.

Thank you.