cancelDownload method

GemError cancelDownload()

Cancel an ongoing download and remove any partially downloaded data.

The cancellation is executed immediately. Any temporary or partially downloaded files associated with this content item are removed. No onComplete notifications are triggered for this operation.

Returns

Implementation

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

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