PSPDFLibraryPreviewResult

Objective-C


@interface PSPDFLibraryPreviewResult : PSPDFSearchResult

Swift

class LibraryPreviewResult : SearchResult

This class is a subclass of PSPDFSearchResult, and encapsulates a preview generated by PSPDFLibrary. Mainly, it prevents access of the annotation property of PSPDFSearchResult, and instead provides an annotationObjectNumber property to represent a matched annotation.

  • The object number for the matched annotation, if that is what the receiver is representing, -1 otherwise.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger annotationObjectNumber;

    Swift

    var annotationObjectNumber: Int { get }
  • Returns true if the receiver is representing an annotation search result, else false.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isAnnotationResult;

    Swift

    var isAnnotationResult: Bool { get }