PSPDFGalleryManifest
Objective-C
@interface PSPDFGalleryManifest : NSObject
Swift
class GalleryManifest : NSObject
PSPDFGalleryManifest
models the manifest file that is the data source of every gallery.
It abstracts the task of loading an array of PSPDFGalleryItem
s from potentially multiple
sources.
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_EMPTY_INIT_UNAVAILABLE
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_EMPTY_INIT_UNAVAILABLE
-
Initializes an
PSPDFGalleryManifest
with the given annotation. The annotation is required.Declaration
Objective-C
- (nonnull instancetype)initWithLinkAnnotation: (nonnull PSPDFLinkAnnotation *)linkAnnotation;
Swift
init(linkAnnotation: PSPDFLinkAnnotation)
-
The link annotation that the manifest was initialized with.
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFLinkAnnotation *_Nonnull linkAnnotation;
Swift
var linkAnnotation: PSPDFLinkAnnotation { get }
-
Loads the items from whatever data source the link annotation provides. The completion block will be executed as soon as the load either succeeds or fails.
Note
If this method is called while a load is already in progress, the method performs a noop and the completion block will never be called.Declaration
Objective-C
- (void)loadItemsWithCompletionBlock: (nullable PSPDFGalleryManifestCompletionBlock)completionBlock;
Swift
func loadItems() async throws -> [PSPDFGalleryItem]
-
Cancels a pending load.
-
Indicates if the manifest is currently loading its items.
Declaration
Objective-C
@property (nonatomic, readonly, getter=isLoading) BOOL loading;
Swift
var isLoading: Bool { get }