PSPDFRemoteFileObject

@interface PSPDFRemoteFileObject : NSObject<PSPDFRemoteContentObject>

PSPDF_EMPTY_INIT_UNAVAILABLE

/// Designated initializer.
- (instancetype)initWithRemoteURL:(NSURL *)remoteURL targetURL:(NSURL *)targetFileURL fileManager:(id<PSPDFFileManager>)fileManager NS_DESIGNATED_INITIALIZER;

/// The remote URL to fetch the content from.
@property (nonatomic, copy, readonly) NSURL *remoteURL;
@property (nonatomic, copy, readonly) NSURL *targetURL;

/// @name PSPDFRemoteContentObject

/// The remote content of the object. This property is managed by `PSPDFDownloadManager`.
@property (nonatomic, nullable) NSURL *remoteContent;

/// The loading state of the object. This property is managed by `PSPDFDownloadManager`.
@property (nonatomic, getter=isLoadingRemoteContent) BOOL loadingRemoteContent;

/// The download progress of the object. Only meaningful if `loadingRemoteContent` is YES.
/// This property is managed by `PSPDFDownloadManager`.
@property (nonatomic) CGFloat remoteContentProgress;

/// The remote content error of the object. This property is managed by `PSPDFDownloadManager`.
@property (nonatomic, nullable) NSError *remoteContentError;

/// The completion block.
@property (nonatomic, copy, nullable) void (^completionBlock)(id<PSPDFRemoteContentObject> remoteObject);

@end

Undocumented

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • 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

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSURL *targetURL

    Swift

    var targetURL: URL { get }
  • 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 }