PTPDFAnnotationChange
@interface PTPDFAnnotationChange : NSObject
Instances of this class represent annotation changes (add, modify, remove, etc.).
-
Initializes a newly created
PTPDFAnnotationChangeinstance.Declaration
Objective-C
- (nonnull instancetype)initWithChangeType:(PTPDFAnnotationChangeType)type forAnnotation:(nonnull PTAnnot *)annotation onPageNumber:(int)pageNumber;Swift
init(changeType type: PTPDFAnnotationChange.ChangeType, forAnnotation annotation: PTAnnot, onPageNumber pageNumber: Int32)Parameters
typeThe type of this change
annotationThe annotation involved in the change
pageNumberThe PDF page number of the annotation
Return Value
an initialized instance of the
PTPDFAnnotationChangeclass -
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
The type of this change.
Declaration
Objective-C
@property (nonatomic, readonly) PTPDFAnnotationChangeType type;Swift
var type: PTPDFAnnotationChange.ChangeType { get } -
The PDF page number of this change’s
annotation.Declaration
Objective-C
@property (nonatomic, readonly) int pageNumber;Swift
var pageNumber: Int32 { get } -
Returns whether the receiver and the specified
PTPDFAnnotationChangeinstance are equal.Declaration
Objective-C
- (BOOL)isEqualToChange:(nonnull PTPDFAnnotationChange *)change;Swift
func isEqual(to change: PTPDFAnnotationChange) -> BoolParameters
changeThe other
PTPDFAnnotationChangeinstance to compare for equalityReturn Value
YESif the receiver is equal to the specified change,NOotherwise
-
Creates a new
PTPDFAnnotationChangeinstance initialized with the specified parameters.Declaration
Objective-C
+ (nonnull instancetype)changeWithType:(PTPDFAnnotationChangeType)type forAnnotation:(nonnull PTAnnot *)annotation onPageNumber:(int)pageNumber;Swift
convenience init(type: PTPDFAnnotationChange.ChangeType, forAnnotation annotation: PTAnnot, onPageNumber pageNumber: Int32)Parameters
typeThe type of the change
annotationThe annotation involved in the change
pageNumberThe PDF page number of the annotation
Return Value
an initialized instance of the
PTPDFAnnotationChangeclass
PTPDFAnnotationChange Class Reference