PSPDFFileIndexItemDescriptor


@interface PSPDFFileIndexItemDescriptor : NSObject

This class encapsulates the metadata associated with a document used in the PSPDFLibraryFileSystemDataSource

  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFFileIndexItemDescriptor : NSObject
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFFileIndexItemDescriptor : NSObject
  • The document’s path, relative to the file system data source’s documents directory URL. - note: Use [NSURL fileURLWithPath:descriptor.documentPath relativeToURL:fileSystemDataSource.documentsDirectoryURL] to construct an absolute path.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull documentPath;

    Swift

    var documentPath: String { get }
  • The document’s UID

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull documentUID;

    Swift

    var documentUID: String { get }
  • The document’s modification date

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSDate *_Nonnull lastModificationDate;

    Swift

    var lastModificationDate: Date { get }
  • Returns a Boolean value that indicates whether a given descriptor is equal to the receiver.

    Declaration

    Objective-C

    - (BOOL)isEqualToFileIndexItemDescriptor:
        (nonnull PSPDFFileIndexItemDescriptor *)other;

    Swift

    func isEqual(to other: PSPDFFileIndexItemDescriptor) -> Bool

    Parameters

    other

    The descriptor with which to compare the receiver.

    Return Value

    YES is other is equivalent to the receiver, otherwise NO.