PTAnnotationReplyViewController


@interface PTAnnotationReplyViewController : UIViewController <PTOverridable>

Instances of the PTAnnotationReplyViewController class display a list of replies made to an annotation.

  • Initializes a newly created PTAnnotationReplyViewController instance with an annotation manager.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAnnotationManager:
        (nonnull PTAnnotationManager *)annotationManager;

    Swift

    init(annotationManager: PTAnnotationManager)
  • The annotation manager associated with this control.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) PTAnnotationManager *annotationManager;

    Swift

    var annotationManager: PTAnnotationManager? { get set }
  • The annotation reply input view controller.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) PTAnnotationReplyInputViewController *_Nonnull replyInputViewController;

    Swift

    var replyInputViewController: PTAnnotationReplyInputViewController { get }
  • The PDF annotation for which replies will be shown.

    The default value of this property is nil.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) PTAnnot *annotation;

    Swift

    var annotation: PTAnnot? { get }
  • The PDF page number containing the current annotation.

    The default value of this property is 0.

    Declaration

    Objective-C

    @property (nonatomic, readonly) int annotationPageNumber;

    Swift

    var annotationPageNumber: Int32 { get }
  • Sets the current PDF annotation and page number for which replies will be shown by this controller.

    Declaration

    Objective-C

    - (void)setAnnotation:(nullable PTAnnot *)annotation
             onPageNumber:(int)pageNumber;

    Swift

    func setAnnotation(_ annotation: PTAnnot?, onPageNumber pageNumber: Int32)

    Parameters

    annotation

    the PDF annotation for which to show replies, or nil if deselecting the previously-set annotation.

    pageNumber

    the PDF page number containing the annotation, or 0 if deselecting the previously-set annotation.

  • Whether the annotation state of the current PDF annotation can be set or updated by this view controller. The visibility of the annotationStateButtonItem bar button item is controlled by this property.

    The default value of this property is YES.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isAnnotationStateEnabled) BOOL annotationStateEnabled;

    Swift

    var isAnnotationStateEnabled: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, getter=isLoadingAnnotationModel) BOOL loadingAnnotationModel

    Swift

    var isLoadingAnnotationModel: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) id<PTAnnotationModel> annotationModel

    Swift

    var annotationModel: (any PTAnnotationModel)? { get set }
  • Whether editing of existing replies is enabled. When enabled, the annotationManager is consulted to check whether a given annotation reply can be edited by the current author.

    The default value of this property is YES.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isReplyEditingEnabled) BOOL replyEditingEnabled;

    Swift

    var isReplyEditingEnabled: Bool { get set }
  • The existing annotation reply that is currently being edited, if any.

    The default value of this property is nil.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) id<PTAnnotationModel> editingAnnotationModel;

    Swift

    var editingAnnotationModel: (any PTAnnotationModel)? { get set }
  • The “Annotation State” bar button item shown by this view controller to allow setting or updating the state of the current annotation.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIBarButtonItem *_Nonnull annotationStateButtonItem;

    Swift

    var annotationStateButtonItem: UIBarButtonItem { get }
  • The “Done” bar button item shown by this view controller to allow dismissing it when shown in a non-popover modal presentation.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIBarButtonItem *_Nonnull doneButtonItem;

    Swift

    var doneButtonItem: UIBarButtonItem { get }