Enum Class OfflineDownloadState

java.lang.Object
java.lang.Enum<OfflineDownloadState>
com.jwplayer.pub.api.offline.OfflineDownloadState
All Implemented Interfaces:
Serializable, Comparable<OfflineDownloadState>, Constable

public enum OfflineDownloadState extends Enum<OfflineDownloadState>
State of an offline download, as reported by OfflineDownloadInfo.getState().

Deliberately an SDK-owned type rather than the underlying player library's state constants, so that a host's download screen does not have to depend on that library's numbering.

  • Enum Constant Details

  • Method Details

    • values

      public static OfflineDownloadState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OfflineDownloadState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null