How to check internet data usage in Universal Windows Platform

141 Views Asked by At

I would like to get internet data usage from my app in Windows Universal Application

  1. WiFi data usage
  2. Cellular Data data usage

Currently, I'm only able to check whether internet is connected or not using Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile()

1

There are 1 best solutions below

0
Xie Steven On

You could use ConnectionProfile.GetNetworkUsageAsync method to get a list of the estimated data traffic and connection duration over a specified period of time, for a specific network usage state.

For an example of how these methods are used, see How to retrieve connection usage data for a specific period of time.