packaging Status
Describes the packaging status of the online map area. This property allows you to check whether an online PreplannedMapArea is in a PreplannedPackagingStatus.Complete state and ready to be downloaded.
If you attempt to load a PreplannedMapArea that is not PreplannedPackagingStatus.Complete the PreplannedMapArea will fail to load with an error of ErrorType.CommonIllegalState.
There are four possible values:
PreplannedPackagingStatus.Complete indicates the map area is ready for download and the data has been packaged
PreplannedPackagingStatus.Processing indicates that the online map area is not yet ready to be downloaded. The packages required for the map area have not been packaged yet. This status will be available after the PreplannedMapArea fails to load.
PreplannedPackagingStatus.Failed indicates that an error was encountered while preparing the online map area or its packages. In this scenario, the map area cannot be downloaded until the web map author has resolved the errors. This status will be available after the PreplannedMapArea fails to load.
PreplannedPackagingStatus.Unknown indicates that the metadata for the map area has not been fetched. This will be the value when the map area is com.arcgismaps.LoadStatus.NotLoaded.
If the packaging status is PreplannedPackagingStatus.Processing you can check it again following these steps:
Create a new com.arcgismaps.mapping.PortalItem instance using the com.arcgismaps.mapping.PortalItem.url in the PreplannedMapArea.portalItem.
Create a new PreplannedMapArea using the portal item PreplannedMapArea.PreplannedMapArea.
Load the PreplannedMapArea and check PreplannedMapArea.packagingStatus.
Since
200.1.0