PersistentAnnotationSetStore
Swift
@objc(PSPDFPersistentAnnotationSetStore)
public final class PersistentAnnotationSetStore : NSObject, AnnotationSetStore
An annotation set store that stores the saved annotation sets on disk, using file protection.
PSPDF_EXPORT(PSPDFPersistentAnnotationSetStore)
-
Initialize the persistent annotation set store with the given store directory URL.
Declaration
Swift
@objc public init(directoryURL: URL)
Parameters
directoryURL
The root directory URL. This must be a local file URL. If there is no directory at this URL, it will be created automatically.
-
Initialize the persistent annotation set store with a default store directory URL in the Application Support directory.
Declaration
Swift
public convenience override init()
-
The URL of the directory containing an index file and individual annotation set archives.
Declaration
Swift
@objc public let directoryURL: URL
-
Declaration
Swift
public func fetchAnnotationSets() throws -> [AnnotationSet]
-
Declaration
Swift
public func setAnnotationSets(_ newValue: [AnnotationSet]) throws
-
Declaration
Swift
@available(*, deprecated, message: "Deprecated in PSPDFKit 11.3 for iOS. Use `fetchAnnotationSets(﹚` and `setAnnotationSets(_:﹚` instead.") public var annotationSets: [AnnotationSet] { get set }