Other Constants
The following constants are available globally.
-
Posted when the PTPDFViewCtrl has closed the current document.
The notification object is the pdfViewCtrl that posted the notification. The
userInfo
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
userInfo
dictionary will containPTPDFViewCtrlStreamingEventTypeUserInfoKey
andPTPDFViewCtrlPageNumberUserInfoKey
keys.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
userInfo
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
PTPDFViewCtrl
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
NSNumber
object containing anint
page number.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlPageNumberUserInfoKey
Swift
let PTPDFViewCtrlPageNumberUserInfoKey: String
-
The key for a
NSNumber
object containing a PTDownloadedType.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlStreamingEventTypeUserInfoKey
Swift
let PTPDFViewCtrlStreamingEventTypeUserInfoKey: String
-
The key for a
NSNumber
object containing a PTColorPostProcessMode.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlColorPostProcessModeUserInfoKey
Swift
let PTPDFViewCtrlColorPostProcessModeUserInfoKey: String
-
The key for a
UIColor
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
UIColor
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
NSNumber
object containing aTrnPagePresentationMode
.Declaration
Objective-C
extern NSString *const _Nonnull PTPDFViewCtrlPagePresentationModeUserInfoKey
Swift
let PTPDFViewCtrlPagePresentationModeUserInfoKey: String