Packagecom.distriqt.extension.expansionfiles
Classpublic class DownloadState
InheritanceDownloadState Inheritance Object



Public Constants
 ConstantDefined By
  STATE_COMPLETED : int = 5
[static]
DownloadState
  STATE_CONNECTING : int = 3
[static]
DownloadState
  STATE_DOWNLOADING : int = 4
[static]
DownloadState
  STATE_FAILED : int = 19
[static]
DownloadState
  STATE_FAILED_CANCELED : int = 18
[static]
DownloadState
  STATE_FAILED_FETCHING_URL : int = 16
[static]
DownloadState
  STATE_FAILED_SDCARD_FULL : int = 17
[static]
DownloadState
  STATE_FAILED_UNLICENSED : int = 15
[static]
DownloadState
  STATE_FETCHING_URL : int = 2
[static]
DownloadState
  STATE_IDLE : int = 1
[static]
DownloadState
  STATE_PAUSED_BY_REQUEST : int = 7
[static]
DownloadState
  STATE_PAUSED_NEED_CELLULAR_PERMISSION : int = 9
[static]
DownloadState
  STATE_PAUSED_NEED_WIFI : int = 11
[static]
DownloadState
  STATE_PAUSED_NETWORK_SETUP_FAILURE : int = 13
[static] Scary case.
DownloadState
  STATE_PAUSED_NETWORK_UNAVAILABLE : int = 6
[static]
DownloadState
  STATE_PAUSED_ROAMING : int = 12
[static]
DownloadState
  STATE_PAUSED_SDCARD_UNAVAILABLE : int = 14
[static]
DownloadState
  STATE_PAUSED_WIFI_DISABLED : int = 10
[static] Both STATE_PAUSED_WIFI_DISABLED and STATE_PAUSED_NEED_WIFI imply that Wi-Fi is unavailable and cellular permission will NOT restart the service.
DownloadState
  STATE_PAUSED_WIFI_DISABLED_NEED_CELLULAR_PERMISSION : int = 8
[static] Both STATE_PAUSED_WIFI_DISABLED_NEED_CELLULAR_PERMISSION and STATE_PAUSED_NEED_CELLULAR_PERMISSION imply that Wi-Fi is unavailable and cellular permission will restart the service.
DownloadState
Constant Detail
STATE_COMPLETEDConstant
public static const STATE_COMPLETED:int = 5

STATE_CONNECTINGConstant 
public static const STATE_CONNECTING:int = 3

STATE_DOWNLOADINGConstant 
public static const STATE_DOWNLOADING:int = 4

STATE_FAILEDConstant 
public static const STATE_FAILED:int = 19

STATE_FAILED_CANCELEDConstant 
public static const STATE_FAILED_CANCELED:int = 18

STATE_FAILED_FETCHING_URLConstant 
public static const STATE_FAILED_FETCHING_URL:int = 16

STATE_FAILED_SDCARD_FULLConstant 
public static const STATE_FAILED_SDCARD_FULL:int = 17

STATE_FAILED_UNLICENSEDConstant 
public static const STATE_FAILED_UNLICENSED:int = 15

STATE_FETCHING_URLConstant 
public static const STATE_FETCHING_URL:int = 2

STATE_IDLEConstant 
public static const STATE_IDLE:int = 1

STATE_PAUSED_BY_REQUESTConstant 
public static const STATE_PAUSED_BY_REQUEST:int = 7

STATE_PAUSED_NEED_CELLULAR_PERMISSIONConstant 
public static const STATE_PAUSED_NEED_CELLULAR_PERMISSION:int = 9

STATE_PAUSED_NEED_WIFIConstant 
public static const STATE_PAUSED_NEED_WIFI:int = 11

STATE_PAUSED_NETWORK_SETUP_FAILUREConstant 
public static const STATE_PAUSED_NETWORK_SETUP_FAILURE:int = 13

Scary case. We were on a network that redirected us to another website that delivered us the wrong file.

STATE_PAUSED_NETWORK_UNAVAILABLEConstant 
public static const STATE_PAUSED_NETWORK_UNAVAILABLE:int = 6

STATE_PAUSED_ROAMINGConstant 
public static const STATE_PAUSED_ROAMING:int = 12

STATE_PAUSED_SDCARD_UNAVAILABLEConstant 
public static const STATE_PAUSED_SDCARD_UNAVAILABLE:int = 14

STATE_PAUSED_WIFI_DISABLEDConstant 
public static const STATE_PAUSED_WIFI_DISABLED:int = 10

Both STATE_PAUSED_WIFI_DISABLED and STATE_PAUSED_NEED_WIFI imply that Wi-Fi is unavailable and cellular permission will NOT restart the service. Wi-Fi disabled means that the Wi-Fi manager is returning that Wi-Fi is not enabled, while in the other case Wi-Fi is enabled but not available.

The service does not return these values. We recommend that app developers with very large payloads do not allow these payloads to be downloaded over cellular connections.

STATE_PAUSED_WIFI_DISABLED_NEED_CELLULAR_PERMISSIONConstant 
public static const STATE_PAUSED_WIFI_DISABLED_NEED_CELLULAR_PERMISSION:int = 8

Both STATE_PAUSED_WIFI_DISABLED_NEED_CELLULAR_PERMISSION and STATE_PAUSED_NEED_CELLULAR_PERMISSION imply that Wi-Fi is unavailable and cellular permission will restart the service. Wi-Fi disabled means that the Wi-Fi manager is returning that Wi-Fi is not enabled, while in the other case Wi-Fi is enabled but not available.