Interface CachingTaskProgress

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract double getDuration() The requested cached duration of the media, in seconds.
      abstract long getBytes() The estimation of the amount this task will download and store, in bytes.
      abstract long getBytesCached() The amount downloaded and stored, in bytes.
      abstract TimeRanges getCached() The time ranges indicating the data which has been cached.
      abstract double getSecondsCached() The amount of content that has been cached.
      abstract double getPercentageCached() The percentage of content that has been cached.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getDuration

         abstract double getDuration()

        The requested cached duration of the media, in seconds.

        • Returns -1 if the duration is not available yet.
        Returns:

        The amount that will be cached, in seconds.

      • getBytes

         abstract long getBytes()

        The estimation of the amount this task will download and store, in bytes.

        • Returns -1 if the estimate is not available yet.
        Returns:

        the data estimation, in bytes.

      • getBytesCached

         abstract long getBytesCached()

        The amount downloaded and stored, in bytes.

        Returns:

        The amount of data downloaded and stored, in bytes.

      • getCached

        @NonNull() abstract TimeRanges getCached()

        The time ranges indicating the data which has been cached.

        Returns:

        The time ranges cached. (NonNull)

      • getSecondsCached

         abstract double getSecondsCached()

        The amount of content that has been cached.

        Returns:

        The duration cached, in seconds.

      • getPercentageCached

         abstract double getPercentageCached()

        The percentage of content that has been cached.

        Returns:

        The percentage cached, between 0 and 1.