cancelDownload method
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
- GemError.success on success; otherwise see GemError for other returned values.
Implementation
GemError cancelDownload() {
final OperationResult resultString = objectMethod(
pointerId,
'ContentStoreItem',
'cancelDownload',
);
return GemErrorExtension.fromCode(resultString['result']);
}