downloadAvailability property

OfflineUpdateAvailability downloadAvailability

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 is OfflineUpdateAvailability.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.downloadScheduledUpdates and PreplannedUpdateMode.downloadScheduledUpdatesAndUploadNewFeatures. If your offline map is set up to download changes directly from the feature services (for example using PreplannedUpdateMode.syncWithFeatureServices or created with a GenerateOfflineMapJob), then this property will be OfflineUpdateAvailability.indeterminate.

Implementation

OfflineUpdateAvailability get downloadAvailability {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_OfflineMapUpdatesInfo_getDownloadAvailability(
        _handle, errorHandler);
  });
  return OfflineUpdateAvailability._fromCoreValue(coreValue);
}