PSPDFRemoteFileObject

Undocumented

  • Undocumented

  • Undocumented

  • Designated initializer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRemoteURL:(nonnull NSURL *)remoteURL
                                    targetURL:(nonnull NSURL *)targetFileURL
                                  fileManager:
                                      (nonnull id<PSPDFFileManager>)fileManager;

    Swift

    init(remoteURL: URL, targetURL targetFileURL: URL, fileManager: PSPDFFileManager)
  • The remote URL to fetch the content from.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSURL *_Nonnull remoteURL;

    Swift

    var remoteURL: URL { get }
  • Undocumented

  • The remote content of the object. This property is managed by PSPDFDownloadManager.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) NSURL *remoteContent;

    Swift

    var remoteContent: URL? { get set }
  • The loading state of the object. This property is managed by PSPDFDownloadManager.

    Declaration

    Objective-C

    @property (getter=isLoadingRemoteContent, assign, readwrite, nonatomic)
        BOOL loadingRemoteContent;

    Swift

    var isLoadingRemoteContent: Bool { get set }
  • The download progress of the object. Only meaningful if loadingRemoteContent is YES. This property is managed by PSPDFDownloadManager.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat remoteContentProgress;

    Swift

    var remoteContentProgress: CGFloat { get set }
  • The remote content error of the object. This property is managed by PSPDFDownloadManager.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) NSError *remoteContentError;

    Swift

    var remoteContentError: Error? { get set }
  • The completion block.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) void (^)
        (id<PSPDFRemoteContentObject> _Nonnull) completionBlock;

    Swift

    var completionBlock: ((PSPDFRemoteContentObject) -> Void)? { get set }