I would like to get internet data usage from my app in Windows Universal Application
- WiFi data usage
- Cellular Data data usage
Currently, I'm only able to check whether internet is connected or not using Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile()
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.