Other Constants
The following constants are available globally.
-
Image stamp annotation
See moreDeclaration
Objective-C
extern const PTExtendedAnnotName _Nonnull PTExtendedAnnotNameImageStamp
Swift
static let imageStamp: PTExtendedAnnotName
-
Ruler annotation
See moreDeclaration
Objective-C
extern const PTExtendedAnnotName _Nonnull PTExtendedAnnotNameRuler
Swift
static let ruler: PTExtendedAnnotName
-
Perimeter annotation
See moreDeclaration
Objective-C
extern const PTExtendedAnnotName _Nonnull PTExtendedAnnotNamePerimeter
Swift
static let perimeter: PTExtendedAnnotName
-
Area annotation
See moreDeclaration
Objective-C
extern const PTExtendedAnnotName _Nonnull PTExtendedAnnotNameArea
Swift
static let area: PTExtendedAnnotName
-
Pencil drawing annotation
See moreDeclaration
Objective-C
extern const PTExtendedAnnotName _Nonnull PTExtendedAnnotNamePencilDrawing
Swift
static let pencilDrawing: PTExtendedAnnotName
-
Freehand highlight annotation
See moreDeclaration
Objective-C
extern const PTExtendedAnnotName _Nonnull PTExtendedAnnotNameFreehandHighlight
Swift
static let freehandHighlight: PTExtendedAnnotName
-
Free text callout annotation
See moreDeclaration
Objective-C
extern const PTExtendedAnnotName _Nonnull PTExtendedAnnotNameCallout
Swift
static let callout: PTExtendedAnnotName
-
An identifying string applied to signature (stamp) annotations.
See moreDeclaration
Objective-C
extern NSString *const _Nonnull PTSignatureAnnotationIdentifier
Swift
let PTSignatureAnnotationIdentifier: String
-
An identifying string applied to image (stamp) annotations.
See moreDeclaration
Objective-C
extern NSString *const _Nonnull PTImageStampAnnotationIdentifier
Swift
let PTImageStampAnnotationIdentifier: String
-
An identifying string applied to image (stamp) annotations relating to the stamp’s rotation.
See moreDeclaration
Objective-C
extern NSString *const _Nonnull PTImageStampAnnotationRotationIdentifier
Swift
let PTImageStampAnnotationRotationIdentifier: String
-
An identifying string applied to image (stamp) annotations relating to the stamp’s rotation.
See moreDeclaration
Objective-C
extern NSString *const _Nonnull PTImageStampAnnotationRotationDegreeIdentifier
Swift
let PTImageStampAnnotationRotationDegreeIdentifier: String
-
An identifying string applied to image (stamp) annotations created with PencilKit.
See moreDeclaration
Objective-C
extern NSString *const _Nonnull PTPencilDrawingAnnotationIdentifier
Swift
let PTPencilDrawingAnnotationIdentifier: String
-
Posted when the PTPDFViewCtrl has closed the current document.
The notification object is the pdfViewCtrl that posted the notification. The
See moreuserInfo
dictionary is empty.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTPDFViewCtrlDidCloseDocNotification
Swift
static let PTPDFViewCtrlDidCloseDoc: NSNotification.Name
-
Posted when the PTPDFViewCtrl has streaming event notification. These are generated when downloading a document via
-OpenURLAync:
, and when opening a non-PDF document with-openUniversalDocumentWithConversion:
.The notification object is the pdfViewCtrl that posted the notification. The
See moreuserInfo
dictionary contains entries for thePTPDFViewCtrlStreamingEventTypeUserInfoKey
andPTPDFViewCtrlPageNumberUserInfoKey
keys. ThePTPDFViewCtrlStreamingEventMessageUserInfoKey
key is present when there is a streaming event message.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTPDFViewCtrlStreamingEventNotification
Swift
static let PTPDFViewCtrlStreamingEvent: NSNotification.Name
-
Posted when the PTPDFViewCtrl’s color post process mode changes.
The notification object is the pdfViewCtrl that posted the notification. The
See moreuserInfo
dictionary contains entries for thePTPDFViewCtrlColorPostProcessModeUserInfoKey
andPTPDFViewCtrlPageNumberUserInfoKey
keys. It may also contain entries for thePTPDFViewCtrlWhiteColorUserInfoKey
andPTPDFViewCtrlBlackColorUserInfoKey
keys when the post-process colors are changed with-SetColorPostProcessColors:black_color:
.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTPDFViewCtrlColorPostProcessModeDidChangeNotification
Swift
static let PTPDFViewCtrlColorPostProcessModeDidChange: NSNotification.Name
-
Posted when the PTPDFViewCtrl’s page presentation mode changes.
The notification object is the
See morePTPDFViewCtrl
that posted the notification. TheuserInfo
dictionary contains an entry for thePTPDFViewCtrlPagePresentationModeUserInfoKey
key with the new page presentation mode.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTPDFViewCtrlPagePresentationModeDidChangeNotification
Swift
static let PTPDFViewCtrlPagePresentationModeDidChange: NSNotification.Name
-
The key for a
See moreNSNumber
object containing anint
page number.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlPageNumberUserInfoKey
Swift
let PTPDFViewCtrlPageNumberUserInfoKey: String
-
The key for a
See moreNSNumber
object containing a PTDownloadedType.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlStreamingEventTypeUserInfoKey
Swift
let PTPDFViewCtrlStreamingEventTypeUserInfoKey: String
-
The key for a
See moreNSString
object containing the message for a streaming event.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlStreamingEventMessageUserInfoKey
Swift
let PTPDFViewCtrlStreamingEventMessageUserInfoKey: String
-
The key for a
See moreNSNumber
object containing a PTColorPostProcessMode.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlColorPostProcessModeUserInfoKey
Swift
let PTPDFViewCtrlColorPostProcessModeUserInfoKey: String
-
The key for a
See moreUIColor
object containing the color that black is mapped to.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlBlackColorUserInfoKey
Swift
let PTPDFViewCtrlBlackColorUserInfoKey: String
-
The key for a
See moreUIColor
object containing the color that white is mapped to.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlWhiteColorUserInfoKey
Swift
let PTPDFViewCtrlWhiteColorUserInfoKey: String
-
The key for a
See moreNSNumber
object containing aTrnPagePresentationMode
.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlPagePresentationModeUserInfoKey
Swift
let PTPDFViewCtrlPagePresentationModeUserInfoKey: String
-
Annotation label.
See moreDeclaration
Objective-C
extern const PTAnnotStyleKey _Nonnull PTAnnotStyleKeyLabel
Swift
static let label: PTAnnotStyleKey
-
Measurement scale.
See moreDeclaration
Objective-C
extern const PTAnnotStyleKey _Nonnull PTAnnotStyleKeyScale
Swift
static let scale: PTAnnotStyleKey
-
Measurement precision.
See moreDeclaration
Objective-C
extern const PTAnnotStyleKey _Nonnull PTAnnotStyleKeyPrecision
Swift
static let precision: PTAnnotStyleKey
-
Measurement tool snap-to.
See moreDeclaration
Objective-C
extern const PTAnnotStyleKey _Nonnull PTAnnotStyleKeySnapping
Swift
static let snapping: PTAnnotStyleKey
-
Annotation font
See moreDeclaration
Objective-C
extern const PTAnnotStyleKey _Nonnull PTAnnotStyleKeyFont
Swift
static let font: PTAnnotStyleKey
-
Posted when remote annotations are added.
The notification object is the collaboration manager that posted the notification. The
See moreuserInfo
dictionary contains entries for thePTCollaborationManagerAnnotationUserInfoKey
key.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTCollaborationManagerRemoteAnnotationsAddedNotification
Swift
static let PTCollaborationManagerRemoteAnnotationsAdded: NSNotification.Name
-
Posted when remote annotations are modified.
The notification object is the collaboration manager that posted the notification. The
See moreuserInfo
dictionary contains entries for thePTCollaborationManagerAnnotationUserInfoKey
key.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTCollaborationManagerRemoteAnnotationsModifiedNotification
Swift
static let PTCollaborationManagerRemoteAnnotationsModified: NSNotification.Name
-
Posted when remote annotations are removed.
The notification object is the collaboration manager that posted the notification. The
See moreuserInfo
dictionary contains entries for thePTCollaborationManagerAnnotationUserInfoKey
key.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTCollaborationManagerRemoteAnnotationsRemovedNotification
Swift
static let PTCollaborationManagerRemoteAnnotationsRemoved: NSNotification.Name
-
The key for an
See moreNSArray
ofPTCollaborationAnnotation
objects.Declaration
Objective-C
extern NSString *const _Nonnull PTCollaborationManagerAnnotationsUserInfoKey
Swift
let PTCollaborationManagerAnnotationsUserInfoKey: String
-
The key for an
See moreNSNumber
object containing aBOOL
.Declaration
Objective-C
extern NSString *const _Nonnull PTCollaborationManagerIsInitialUserInfoKey
Swift
let PTCollaborationManagerIsInitialUserInfoKey: String
-
Posted when the PTDocumentViewController has opened a document.
The notification object is the PTDocumentViewController that posted the notification.
See moreDeclaration
Objective-C
extern const NSNotificationName _Nonnull PTDocumentViewControllerDidOpenDocumentNotification
Swift
static let PTDocumentViewControllerDidOpenDocument: NSNotification.Name
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT const NSNotificationName PTDocumentViewControllerDidDissmissShareActivityNotification
Swift
static let PTDocumentViewControllerDidDissmissShareActivity: NSNotification.Name
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT const NSNotificationName PTDocumentViewControllerDidDissapearNotification
Swift
static let PTDocumentViewControllerDidDissapear: NSNotification.Name
-
A checkmark-type stamp.
See moreDeclaration
Objective-C
extern const PTStampType _Nonnull PTStampTypeCheckMark
Swift
static let checkMark: PTStampType
-
A cross-type stamp.
See moreDeclaration
Objective-C
extern const PTStampType _Nonnull PTStampTypeCrossMark
Swift
static let crossMark: PTStampType
-
A dot-type stamp.
See moreDeclaration
Objective-C
extern const PTStampType _Nonnull PTStampTypeDot
Swift
static let dot: PTStampType
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTRubberStampKeyText
Swift
let PTRubberStampKeyText: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTRubberStampKeyTextBelow
Swift
let PTRubberStampKeyTextBelow: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTRubberStampKeyFillColorStart
Swift
let PTRubberStampKeyFillColorStart: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTRubberStampKeyFillColorEnd
Swift
let PTRubberStampKeyFillColorEnd: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTRubberStampKeyTextColor
Swift
let PTRubberStampKeyTextColor: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTRubberStampKeyBorderColor
Swift
let PTRubberStampKeyBorderColor: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTRubberStampKeyFillOpacity
Swift
let PTRubberStampKeyFillOpacity: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTRubberStampKeyPointingLeft
Swift
let PTRubberStampKeyPointingLeft: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTRubberStampKeyPointingRight
Swift
let PTRubberStampKeyPointingRight: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTTextSearchMatchCaseKey
Swift
let PTTextSearchMatchCaseKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTTextSearchMatchWholeWordKey
Swift
let PTTextSearchMatchWholeWordKey: String
-
The default line, interitem, and section inset spacing.
See moreDeclaration
Objective-C
extern const CGFloat PTThumbnailViewLayoutDefaultSpacing
Swift
let PTThumbnailViewLayoutDefaultSpacing: CGFloat
-
A filter to show all thumbnails.
See moreDeclaration
Objective-C
extern const PTFilterMode _Nonnull PTThumbnailFilterAll
Swift
static let thumbnailFilterAll: PTFilterMode
-
A filter to show thumbnails of annotated pages only.
See moreDeclaration
Objective-C
extern const PTFilterMode _Nonnull PTThumbnailFilterAnnotated
Swift
static let thumbnailFilterAnnotated: PTFilterMode
-
A filter to show thumbnails of bookmarked pages only.
See moreDeclaration
Objective-C
extern const PTFilterMode _Nonnull PTThumbnailFilterBookmarked
Swift
static let thumbnailFilterBookmarked: PTFilterMode
-
This notification is posted when the selected tool group changes.
The notification object is the tool group manager that posted the notification.
See moreDeclaration
Objective-C
extern const NSNotificationName _Nonnull PTToolGroupDidChangeNotification
Swift
static let PTToolGroupDidChange: NSNotification.Name
-
Posted when the tool will be changed.
The notification object is the tool manager that posted the notification. The
See moreuserInfo
dictionary contains an entry for thePTToolManagerToolUserInfoKey
key when there is a next tool.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTToolManagerToolWillChangeNotification
Swift
static let PTToolManagerToolWillChange: NSNotification.Name
-
Posted when an annotation will be modified.
The notification object is the tool manager that posted the notification. The
See moreuserInfo
dictionary contains entries for thePTToolManagerAnnotationUserInfoKey
andPTToolManagerPageNumberUserInfoKey
keys.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTToolManagerAnnotationWillModifyNotification
Swift
static let PTToolManagerAnnotationWillModify: NSNotification.Name
-
Posted when an annotation will be removed.
The notification object is the tool manager that posted the notification. The
See moreuserInfo
dictionary contains entries for thePTToolManagerAnnotationUserInfoKey
andPTToolManagerPageNumberUserInfoKey
keys.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTToolManagerAnnotationWillRemoveNotification
Swift
static let PTToolManagerAnnotationWillRemove: NSNotification.Name
-
Posted when a page is added to the document.
The notification object is the tool manager that posted the notification. The
See moreuserInfo
dictionary contains an entry for thePTToolManagerPageNumberUserInfoKey
key with the added page number.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTToolManagerPageAddedNotification
Swift
static let PTToolManagerPageAdded: NSNotification.Name
-
Posted when a page is moved in the document.
The notification object is the tool manager that posted the notification. The
See moreuserInfo
dictionary contains entries for thePTToolManagerPreviousPageNumberUserInfoKey
andPTToolManagerPageNumberUserInfoKey
keys with the old and new page numbers, respectively.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTToolManagerPageMovedNotification
Swift
static let PTToolManagerPageMoved: NSNotification.Name
-
Posted when a page is removed from the document.
The notification object is the tool manager that posted the notification. The
See moreuserInfo
dictionary contains an entry for thePTToolManagerPageNumberUserInfoKey
key with the removed page number.Declaration
Objective-C
extern const NSNotificationName _Nonnull PTToolManagerPageRemovedNotification
Swift
static let PTToolManagerPageRemoved: NSNotification.Name
-
The key for a
See moreNSNumber
object containing anint
page number.Declaration
Objective-C
extern NSString *const _Nonnull PTToolManagerPreviousPageNumberUserInfoKey
Swift
let PTToolManagerPreviousPageNumberUserInfoKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsCategoryKey
Swift
let PTToolsSettingsCategoryKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsFooterDescriptionKey
Swift
let PTToolsSettingsFooterDescriptionKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsSettingKey
Swift
let PTToolsSettingsSettingKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString* const PTToolsSettingsMultivalueKey
Swift
let PTToolsSettingsMultivalueKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsCategoryDefaultValueKey
Swift
let PTToolsSettingsCategoryDefaultValueKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsSettingNameKey
Swift
let PTToolsSettingsSettingNameKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsCategoryDescriptionKey
Swift
let PTToolsSettingsCategoryDescriptionKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsSettingKeyKey
Swift
let PTToolsSettingsSettingKeyKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsPlistNameKey
Swift
let PTToolsSettingsPlistNameKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsMinOSKey
Swift
let PTToolsSettingsMinOSKey: String
-
Undocumented
See moreDeclaration
Objective-C
PT_EXPORT NSString * const PTToolsSettingsUnavailableKey
Swift
let PTToolsSettingsUnavailableKey: String