The result of an OfflineMapSyncJob. More...
Header: | #include <OfflineMapSyncResult.h> |
Since: | Esri::ArcGISRuntime 100.1 |
Inherits: | Esri::ArcGISRuntime::Object |
Public Functions
virtual | ~OfflineMapSyncResult() override |
bool | hasErrors() const |
bool | isMobileMapPackageReopenRequired() const |
QMap<Esri::ArcGISRuntime::FeatureLayer *, Esri::ArcGISRuntime::OfflineMapSyncLayerResult *> | layerResults() const |
QMap<Esri::ArcGISRuntime::FeatureTable *, Esri::ArcGISRuntime::OfflineMapSyncLayerResult *> | tableResults() const |
Detailed Description
When the job completes, this result indicates whether any errors were incurred during the synchronization process (hasErrors). If so, you can examine the dictionary of layerResults and tableResults to identify the source of the problem for each layer and table.
Relevant samples:
- Apply scheduled updates to preplanned map area: Apply scheduled updates to a downloaded preplanned map area.
Member Function Documentation
[override virtual]
OfflineMapSyncResult::~OfflineMapSyncResult ()
Destructor.
bool OfflineMapSyncResult::hasErrors () const
Returns true
if the offline map sync result has synchronization errors available, false
otherwise.
[since Esri::ArcGISRuntime 100.6]
bool OfflineMapSyncResult::isMobileMapPackageReopenRequired () const
Returns true
if the mobile map package must be closed and reopened with a new instance to allow the updates to take effect, false
otherwise.
In some cases, applying updates may require files such as mobile geodatabases to be replaced with a new version. When reopen is required, this property will be true
and you need to:
- Release all instances of the MobileMapPackage and its maps and layers. For example, you should remove any Map instances from the MapView and remove layers and geodatabases from custom views such as lists and tables of contents. This will allow files to be closed.
- Call MobileMapPackage::close to close the mobile map package instance and files.
- Create a new MobileMapPackage instance with the same path.
- Load the new MobileMapPackage. This will apply updates to geodatabases that have been replaced via a scheduled updates workflow.
If your offline map was created using PreplannedUpdateMode::DownloadScheduledUpdatesAndUploadNewFeatures, be aware that immediately following replacement, the new geodatabase will not contain the new features that have been synced up to the feature service. The uploaded features can be downloaded after the next scheduled update has executed and changes are available for download.
This function was introduced in Esri::ArcGISRuntime 100.6.
QMap<Esri::ArcGISRuntime::FeatureLayer *, Esri::ArcGISRuntime::OfflineMapSyncLayerResult *> OfflineMapSyncResult::layerResults () const
Returns the synchronization results for geodatabase feature layers that could be synchronized.
QMap<Esri::ArcGISRuntime::FeatureTable *, Esri::ArcGISRuntime::OfflineMapSyncLayerResult *> OfflineMapSyncResult::tableResults () const
Returns the synchronization results for feature tables that could be synchronized.