save

suspend fun save(): Result<Unit>

Saves any changes that have been made to the FeatureCollection to the associated PortalItem. Updates the FeatureCollection content data on the portal and the portal item properties stored on the portal to match those stored within the FeatureCollection.item object.

The FeatureCollection must have been constructed using the FeatureCollection constructor to associate it with a PortalItem object, or must have been previously saved using FeatureCollection.saveAs(Portal, PortalFolder, String, String, ListImpl, BitmapDrawable). The FeatureCollection must be loaded.

If the portal associated with the item is not loaded, it will be loaded automatically. If the portal requires a credential that has not been supplied, it should have been previously loaded.

Return

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

Since

200.2.0