Class OfflineMapSyncResult
- java.lang.Object
-
- com.esri.arcgisruntime.tasks.offlinemap.OfflineMapSyncResult
-
public final class OfflineMapSyncResult extends java.lang.ObjectRepresents the result of an OfflineMapSyncJob created by an OfflineMapSyncTask.- Since:
- 100.1.0
- See Also:
OfflineMapSyncTask.syncOfflineMap(OfflineMapSyncParameters),OfflineMapSyncJob
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<Layer,OfflineMapSyncLayerResult>getLayerResults()Gets the synchronization results for feature layers that were synchronized.java.util.Map<FeatureTable,OfflineMapSyncLayerResult>getTableResults()Gets the synchronization results for tables that were synchronized.booleanhasErrors()Indicates if any synchronization errors occurred.booleanisMobileMapPackageReopenRequired()Indicates whether the mobile map package must be closed and reopened with a new instance to allow the updates to take effect.
-
-
-
Method Detail
-
hasErrors
public boolean hasErrors()
Indicates if any synchronization errors occurred. This will be true if any layer or table has any type of error associated with it.- Returns:
- true if any synchronization errors occurred, false if no errors occurred
- Since:
- 100.1.0
-
isMobileMapPackageReopenRequired
public boolean isMobileMapPackageReopenRequired()
Indicates whether the mobile map package must be closed and reopened with a new instance to allow the updates to take effect.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
MobileMapPackageand its maps and layers. For example, you should remove anyArcGISMapinstances from theMapViewand 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
MobileMapPackageinstance with the same path. - Load the new
MobileMapPackage. This will apply updates to geodatabases that have been replaced via a scheduled updates workflow.
PreplannedUpdateMode.DOWNLOAD_SCHEDULED_UPDATES_AND_UPLOAD_NEW_FEATURES, 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.- Returns:
- indicates whether the mobile map package must be closed and reopened with a new instance to allow the updates to take effect
- Since:
- 100.6.0
- Release all instances of the
-
getLayerResults
public java.util.Map<Layer,OfflineMapSyncLayerResult> getLayerResults()
Gets the synchronization results for feature layers that were synchronized.- Returns:
- an unmodifiable Map; the keys are
Layerobject and the values areOfflineMapSyncLayerResultobjects associated with the layers. - Since:
- 100.1.0
-
getTableResults
public java.util.Map<FeatureTable,OfflineMapSyncLayerResult> getTableResults()
Gets the synchronization results for tables that were synchronized.- Returns:
- an unmodifiable Map; the keys are FeatureTables and the values are OfflineMapSyncLayerResults associated with the tables
- Since:
- 100.1.0
-
-