Sdílet prostřednictvím


DownloadManager.ColumnReason Field

Definition

Provides more detail on the status of the download.

[Android.Runtime.Register("COLUMN_REASON")]
public const string ColumnReason;
[<Android.Runtime.Register("COLUMN_REASON")>]
val mutable ColumnReason : string

Field Value

Attributes

Remarks

Provides more detail on the status of the download. Its meaning depends on the value of #COLUMN_STATUS.

When #COLUMN_STATUS is #STATUS_FAILED, this indicates the type of error that occurred. If an HTTP error occurred, this will hold the HTTP status code as defined in RFC 2616. Otherwise, it will hold one of the ERROR_* constants.

When #COLUMN_STATUS is #STATUS_PAUSED, this indicates why the download is paused. It will hold one of the PAUSED_* constants.

If #COLUMN_STATUS is neither #STATUS_FAILED nor #STATUS_PAUSED, this column's value is undefined.

Java documentation for android.app.DownloadManager.COLUMN_REASON.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to