updateItemProperties method

Future<void> updateItemProperties()

Updates an item's properties in a file on disk when this item instance is a LocalItem.

This method resides in the Item base class to match the public API, but within the C API it's implemented only on LocalItem and PortalItem simply throws an exception. The client APIs provide their own implementations of this method for PortalItems.

The following remarks apply when the item instance is a LocalItem.

Updating properties can be only done for local items that are unpacked. For example a mobile map package file (.mmpk) can be unpacked using MobileMapPackage.unpack. Once unpacked local items within the package can be updated see MobileMapPackage.item and for any maps use GeoModel.item. As well as packages, the local item available from an item resource cache can be updated. This is accessed with ItemResourceCache.item. If the package is not unpacked an error of ArcGISExceptionType.commonInvalidCall is returned as an error in the async task.

Return Value: A Future that contains no return value.

Implementation

Future<void> updateItemProperties() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Item_updateItemPropertiesAsync(
        _handle, errorHandler);
  });
  return taskHandle.toFuture((_) {});
}