Class OfflineMapUpdatesInfo
- java.lang.Object
-
- com.esri.arcgisruntime.tasks.offlinemap.OfflineMapUpdatesInfo
-
public final class OfflineMapUpdatesInfo extends Object
Provides information on the available updates for an offline map.This type provides high level information on what updates are available for an offline map. Update information covers both:
- online changes that can be applied to update your offline map
- local changes from your offline map that can be sent back to the online services.
- Since:
- 100.6.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OfflineUpdateAvailability
getDownloadAvailability()
Indicates whether there are changes available to download.long
getScheduledUpdatesDownloadSize()
Gets the total size in bytes of update files to download for a scheduled updates workflow.OfflineUpdateAvailability
getUploadAvailability()
Indicates whether there are local changes to upload.boolean
isMobileMapPackageReopenRequired()
Indicates whether the mobile map package must be reopened after applying the available updates.
-
-
-
Method Detail
-
getDownloadAvailability
public OfflineUpdateAvailability getDownloadAvailability()
Indicates whether there are changes available to download.If this property is
OfflineUpdateAvailability.AVAILABLE
then there are online updates to apply to your offline map. If this property isOfflineUpdateAvailability.NONE
then there are no online updates available for your offline map.Note that the availability of updates to download can only be determined for offline maps that use the scheduled updates workflow. See
PreplannedUpdateMode.DOWNLOAD_SCHEDULED_UPDATES
andPreplannedUpdateMode.DOWNLOAD_SCHEDULED_UPDATES_AND_UPLOAD_NEW_FEATURES
. If your offline map is set up to download changes directly from the feature services (for example usingPreplannedUpdateMode.SYNC_WITH_FEATURE_SERVICES
or created with aGenerateOfflineMapJob
), then this property will beOfflineUpdateAvailability.INDETERMINATE
.- Returns:
- indicates whether there are changes available to download
- Since:
- 100.6.0
-
isMobileMapPackageReopenRequired
public boolean isMobileMapPackageReopenRequired()
Indicates whether the mobile map package must be reopened after applying the available updates.In some cases, applying updates may require files, such as mobile geodatabases, to be replaced with a new version. When a reopen will be required after updating, this property will be true - see
OfflineMapSyncResult.isMobileMapPackageReopenRequired()
.If your offline map was created using
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 reopened after applying the available updates
- Since:
- 100.6.0
-
getScheduledUpdatesDownloadSize
public long getScheduledUpdatesDownloadSize()
Gets the total size in bytes of update files to download for a scheduled updates workflow.The scheduled updates workflow allows read-only updates to be stored with the online map area and downloaded to your device at a later time. Updates can cover several sets of changes to the online geodatabase and can cover multiple geodatabases in an offline map. This property is the total download size of all files required to update your offline map.
You can use this information to determine whether you want to download updates immediately - for example based on available disk space or network availability.
If there are no updates available, or your offline map does not use a scheduled updates workflow, this property will be 0.
- Returns:
- the total size in bytes of update files to download for a scheduled updates workflow
- Since:
- 100.6.0
-
getUploadAvailability
public OfflineUpdateAvailability getUploadAvailability()
Indicates whether there are local changes to upload.If your offline map contains local edits that can be uploaded to online feature services, this property will be
OfflineUpdateAvailability.AVAILABLE
. If there are no local changes, or your offline map does not support syncing with feature services, this property will beOfflineUpdateAvailability.NONE
.- Returns:
- an OfflineUpdateAvailability indicating whether there are local changes to upload
- Since:
- 100.6.0
- See Also:
Geodatabase.hasLocalEdits()
-
-