The ItemPackage component provides Access to Item Package related information and status. More...
Import Statement: | import ArcGIS.AppFramework 1.0 |
Inherits: |
Properties
Signals
- downloadComplete()
- downloadError(AppFrameworkError error)
- downloadProgress(int percentage, int secondsRemainingEstimate)
- downloadStarted()
Methods
Detailed Description
The ItemPackage component is used specifically for downloading item packages, either from ArcGIS Online or Portal for ArcGIS. It handles the location and ID of the package to download, as well as various signals to describe the downloads progress.
This component is deprecated at version 5.0. See the NetworkRequest component for how to download an item package.
Enumerations
Status enumeration
Enum describing the current status of the download process.
Name | Value |
---|---|
ItemPackage.Null | 0 |
ItemPackage.Ready | 1 |
ItemPackage.Downloading | 2 |
ItemPackage.Error | 3 |
Property Documentation
Returns the current status of the download process, as described by the Status enum.
Signal Documentation
Signal emitted when the download process has completed.
Note: The corresponding handler is onDownloadComplete
.
downloadError(AppFrameworkError error) |
Signal emitted when the download process has encountered an error.
Note: The corresponding handler is onDownloadError
.
Signal emitted whenever the download progresses.
Note: The corresponding handler is onDownloadProgress
.
Signal emitted when the download process has started.
Note: The corresponding handler is onDownloadStarted
.
Method Documentation
Checks whether the item described by the given item ID exists, returning true or false as appropriate.
The itemId parameter
The item ID to check the presence of.