Package 

Class AppDataUsageHelper


  • 
    public class AppDataUsageHelper
    
                        

    AppDataUsageHelper 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
      double getReceivedDataUsage() Retrieves the amount of data received by the application in bytes.
      double getTransmittedDataUsage() Retrieves the amount of data transmitted by the application in bytes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.