save

suspend fun save(forceSaveToSupportedVersion: Boolean): Result<Unit>

Saves this map back to the item it originated from.

The map must have a valid ArcGISMap.item property and if the operation was successful the item will be updated with the map. A map has a valid item property if it was created using either ArcGISMap.ArcGISMap(Item) or ArcGISMap.ArcGISMap(String), or has been previously saved as a new item.

Return

a Result indicating whether the map was successfully saved. The result will be a failure with type:

Since

200.2.0

Parameters

forceSaveToSupportedVersion

A Boolean value indicating whether the map should be saved to the supported web map version that the API supports (see system requirements). This may cause data loss as unknown data is not saved. If true, unknown data will be removed and the map will be saved. If false, the asynchronous operation will fail if the map contains unknown data that will not be saved. This flag can be used to provide a warning to users that some map data may be lost when the map is saved.