PTAnnotationRefreshCustomAppearanceHandler
@interface PTAnnotationRefreshCustomAppearanceHandler
: NSObject <PTAnnotationRefreshAppearanceHandler>
An abstract base class for annotation refresh appearance handlers that generate a custom PDF appearance for annotations.
-
Initializes a
PTAnnotationRefreshCustomAppearanceHandlerinstance.Declaration
Objective-C
- (nonnull instancetype)init;Swift
init()Return Value
An initialized
PTAnnotationRefreshCustomAppearanceHandlerinstance.
-
Generates a custom PDF appearance for the specified annotation.
Note
The default implementation of this method returns
nil.Declaration
Objective-C
- (nullable PTObj *) generateCustomAppearanceForAnnotation:(nonnull PTAnnot *)annotation withOptions: (nullable PTRefreshOptions *)refreshOptions userInfo: (nullable NSDictionary< PTAnnotationRefreshAppearanceUserInfoKey, id> *)userInfo;Swift
func generateCustomAppearance(forAnnotation annotation: PTAnnot, with refreshOptions: PTRefreshOptions?, userInfo: [PTAnnotationRefreshAppearanceUserInfoKey : Any]? = nil) -> PTObj?Parameters
annotationThe PDF annotation for which to generate an appearance.
refreshOptionsThe refresh options to use, or
niluserInfoA dictionary containing additional information, or
nilReturn Value
The generated custom PDF appearance for the annotation, or
nilif an appearance could not be created.
PTAnnotationRefreshCustomAppearanceHandler Class Reference