Racehorse
    Preparing search index...

    Variable DownloadReasonConst

    DownloadReason: {
        ERROR_BLOCKED: 1010;
        ERROR_CANNOT_RESUME: 1008;
        ERROR_DEVICE_NOT_FOUND: 1007;
        ERROR_FILE_ALREADY_EXISTS: 1009;
        ERROR_FILE_ERROR: 1001;
        ERROR_HTTP_DATA_ERROR: 1004;
        ERROR_INSUFFICIENT_SPACE: 1006;
        ERROR_TOO_MANY_REDIRECTS: 1005;
        ERROR_UNHANDLED_HTTP_CODE: 1002;
        PAUSED_QUEUED_FOR_WIFI: 3;
        PAUSED_UNKNOWN: 4;
        PAUSED_WAITING_FOR_NETWORK: 2;
        PAUSED_WAITING_TO_RETRY: 1;
    } = ...

    The status of the managed download.

    Type declaration

    • ReadonlyERROR_BLOCKED: 1010

      Reason when the download has failed because of network policy manager controls on the requesting application.

    • ReadonlyERROR_CANNOT_RESUME: 1008

      Reason when some possibly transient error occurred, but we can't resume the download.

    • ReadonlyERROR_DEVICE_NOT_FOUND: 1007

      Reason when no external storage device was found. Typically, this is because the SD card is not mounted.

    • ReadonlyERROR_FILE_ALREADY_EXISTS: 1009

      Reason when the requested destination file already exists (the download manager will not overwrite an existing file).

    • ReadonlyERROR_FILE_ERROR: 1001

      Reason when a storage issue arises which doesn't fit under any other error code. Use the more specific ERROR_INSUFFICIENT_SPACE and ERROR_DEVICE_NOT_FOUND when appropriate.

    • ReadonlyERROR_HTTP_DATA_ERROR: 1004

      Reason when an error receiving or processing data occurred at the HTTP level.

    • ReadonlyERROR_INSUFFICIENT_SPACE: 1006

      Reason when there was insufficient storage space. Typically, this is because the SD card is full.

    • ReadonlyERROR_TOO_MANY_REDIRECTS: 1005

      Reason when there were too many redirects.

    • ReadonlyERROR_UNHANDLED_HTTP_CODE: 1002

      Reason when an HTTP code was received that download manager can't handle.

    • ReadonlyPAUSED_QUEUED_FOR_WIFI: 3

      Reason when the download exceeds a size limit for downloads over the mobile network and the download manager is waiting for a Wi-Fi connection to proceed.

    • ReadonlyPAUSED_UNKNOWN: 4

      Reason when the download is paused for some other reason.

    • ReadonlyPAUSED_WAITING_FOR_NETWORK: 2

      Reason when the download is waiting for network connectivity to proceed.

    • ReadonlyPAUSED_WAITING_TO_RETRY: 1

      Reason when the download is paused because some network error occurred and the download manager is waiting before retrying the request.