-
public class AppDataUsageHelperAppDataUsageHelper is a utility class that helps monitor and retrieve the data usage of the application. It provides methods to get the received and transmitted data usage in bytes and convert them to MB or GB.
-
-
Constructor Summary
Constructors Constructor Description AppDataUsageHelper(Context context)Constructor to initialize AppDataUsageHelper with the application context.
-
Method Summary
Modifier and Type Method Description doublegetReceivedDataUsage()Retrieves the amount of data received by the application in bytes. doublegetTransmittedDataUsage()Retrieves the amount of data transmitted by the application in bytes. -
-
Constructor Detail
-
AppDataUsageHelper
AppDataUsageHelper(Context context)
Constructor to initialize AppDataUsageHelper with the application context.- Parameters:
context- The application context.
-
-
Method Detail
-
getReceivedDataUsage
double getReceivedDataUsage()
Retrieves the amount of data received by the application in bytes.
-
getTransmittedDataUsage
double getTransmittedDataUsage()
Retrieves the amount of data transmitted by the application in bytes.
-
-
-
-