ZDCFetchOptions

@interface ZDCFetchOptions : NSObject <NSCopying>

FetchOptions allow you to configure the scenarios in which the image is downloaded from the cloud.

  • Applies to Node Thumbnails:

    If set to YES, then the ImageManager will automatically attempt to download the latest version as needed.

    More specifically:

    • If this property is set to YES/true
    • And the thumbnail is marked as needs download for the ZDCComponent_Thumbnail flag (via [ZDCCloudTransaction markNodeAsNeedsDownload:components:]).
    • Then a download will be initiated via the DownloadManager for the most recent version. (The DownloadManager will automatically consolidate multiple requests.)
    • And the ImageManager will unmark the ZDCComponent_Thumbnail flag as needs download upon completion.

    The default value is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL downloadIfMarkedAsNeedsDownload;

    Swift

    var downloadIfMarkedAsNeedsDownload: Bool { get set }
  • Applies to User Avatars:

    If set to non-nil, will attempt to download a specific user avatar, associated with the specified identity.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *identityID;

    Swift

    var identityID: String? { get set }