PersistentMapStatus
public enum PersistentMapStatus : UInt32, CaseIterable, Codable
Specifies possible statuses of the already downloaded map regions as a whole.
Note: This can be valid only for a single region in case of a PersistentMapStatus.corrupted state.
-
All downloaded regions are in a workable state, no issues found.
Declaration
Swift
case ok -
One or more downloaded regions failed to open and a repair action should be performed to mitigate this issue. All map download and map update operations (except for
sdk.maploader.MapDownloader.repair_persistent_map) will returnsdk.maploader.MapLoaderError.NOT_READY.Declaration
Swift
case corrupted -
Unrecoverable error during construction of pending update parameters. Operations such as catalog updates or region downloads will fail. The healing procedure is to clean persistent map with
sdk.maploader.MapDownloader.clear_persistent_map_storage.Declaration
Swift
case brokenUpdate -
Indicates that the downloaded regions need to be migrated to a new internal format by calling
sdk.maploader.MapDownloader.repair_persistent_map. This error is not a result of a data loss, nor any data will be lost when performing the repair operation and the map version will stay unchanged afterwards.Declaration
Swift
case migrationNeeded -
A map update operation initiated by a user has been interrupted. Calls to
sdk.maploader.MapDownloader.download_regionsandsdk.maploader.MapDownloader.delete_regionswill fail withsdk.maploader.MapLoaderError.INTERNAL_ERROR. To repair a map, call againsdk.maploader.MapUpdater.update_catalogfor the affected catalog.sdk.maploader.MapUpdater.retrieve_catalogs_update_inforeturns a list ofsdk.maploader.CatalogUpdateInfoitems: The affected catalog can be identified by the state, which is set tosdk.maploader.CatalogUpdateState.PENDING_UPDATE. To know if a map needs to be repaired, check ifsdk.maploader.MapLoaderError.PENDING_UPDATEhas occurred.Declaration
Swift
case pendingUpdate -
Unreachable
SDKOptions.cachePathorSDKOptions.persistentMapStoragePath. Make sure thatSDKOptionshas accessibleSDKOptions.cachePathandSDKOptions.persistentMapStoragePathDeclaration
Swift
case invalidPath -
Unrecoverable error during construction of internal map access object. The healing procedure is to clean persistent map with
sdk.maploader.MapDownloader.clear_persistent_map_storage.Declaration
Swift
case invalidState -
Indicates that the status cannot be retrieved as the map storage is already closed due to disposal of
SDKNativeEngine.Declaration
Swift
case storageClosed