cancelDownload method
Cancel a previous download operation.
The partially downloaded content is deleted.
The operation is executed immediately, and no notifications are triggered.
Returns
- GemError.success on success, otherwise see GemError for other values.
Throws
- An exception if it fails.
Implementation
GemError cancelDownload() {
final OperationResult resultString = objectMethod(
_pointerId,
'ContentStoreItem',
'cancelDownload',
);
return GemErrorExtension.fromCode(resultString['result']);
}