cancelDownload method

GemError cancelDownload()

Cancel a previous download operation.

The partially downloaded content is deleted.

The operation is executed immediately, and no notifications are triggered.

Returns

Throws

  • An exception if it fails.

Implementation

GemError cancelDownload() {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'ContentStoreItem',
    'cancelDownload',
  );

  return GemErrorExtension.fromCode(resultString['result']);
}