PSPDFSelectionState

Undocumented

  • Returns an instance of the receiver configured to match the selectionView argument’s state, if a selection exists.

    Declaration

    Objective-C

    + (nullable instancetype)stateForSelectionView:
        (nonnull PSPDFTextSelectionView *)selectionView;

    Swift

    convenience init?(for selectionView: PSPDFTextSelectionView)
  • UID

    The uid of the document which the receiver corresponds to.

    Declaration

    Objective-C

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

    Swift

    var uid: String { get }
  • The page index on which the selection exists.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger selectionPageIndex;

    Swift

    var selectionPageIndex: UInt { get }
  • The selected glyphs, if any

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSArray<PSPDFGlyph *> *selectedGlyphs;

    Swift

    var selectedGlyphs: [PSPDFGlyph]? { get }
  • The info for the selected image, if any

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) PSPDFImageInfo *selectedImage;

    Swift

    var selectedImage: PSPDFImageInfo? { get }
  • Returns a Boolean value that indicates whether a selection state is equal to the receiver.

    Declaration

    Objective-C

    - (BOOL)isEqualToSelectionState:(nullable PSPDFSelectionState *)selectionState;

    Swift

    func isEqual(to selectionState: PSPDFSelectionState?) -> Bool

    Parameters

    selectionState

    The selection with which to compare the receiver

    Return Value

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