RichieURLDownloadQueue

Objective-C

@protocol RichieURLDownloadQueue <NSObject>

-(void) queueURLDownload:(RichieURLDownload *)download;
-(void) queueURLDownload:(RichieURLDownload *)download prioritize:(BOOL)shouldPrioritize; //!< Queues the download to be executed when there's available width in the queue. Prioritized downloads are sent to the top of the queue.

//! Cancels downloads which are already in progress and removes all queued downloads so they won't be started. Except that due to an error, downloads in retry delay aren't cancelled.
-(void) cancelAllDownloads;

@property (nonatomic, readonly, nullable) id<RichieURLDownloadFactory> downloadFactory; //!< Convenience property: users of download queues often (if not always) need a download factory, so that's why they're bundled together.

-(void) invalidate;

@end

Swift

protocol RichieURLDownloadQueueProtocol : NSObjectProtocol

Undocumented

  • Undocumented

    Declaration

    Objective-C

    -(void) queueURLDownload:(RichieURLDownload *)download;

    Swift

    func queue(_ download: RichieURLDownload)
  • Undocumented

    Declaration

    Objective-C

    - (void)queueURLDownload:(nonnull RichieURLDownload *)download
                  prioritize:(BOOL)shouldPrioritize;

    Swift

    func queue(_ download: RichieURLDownload, prioritize shouldPrioritize: Bool)
  • Undocumented

    Declaration

    Objective-C

    - (void)cancelAllDownloads;

    Swift

    func cancelAllDownloads()
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) id<RichieURLDownloadFactory> downloadFactory;

    Swift

    var downloadFactory: (any RichieURLDownloadFactoryProtocol)? { get }
  • Undocumented

    Declaration

    Objective-C

    -(void) invalidate;

    Swift

    func invalidate()