SASAnnotationDelegate
@available(*, deprecated, message: "Use PKCanvasView")
@objc
public protocol SASAnnotationDelegate : NSObjectProtocol
AnnotationDelegate protocol This protocol allows the application using the AnnotationViewController to add user experience to the annotation workflow.
Since
since 8.32-
The annotation view controller closed.
Since
since 8.32Declaration
Swift
@objc optional func annotationViewDidClose(_ annotationView: SASAnnotationViewController, withAnnotatedImage: UIImage)
Parameters
annotationView
The AnnotationViewController that closed.
withAnnotatedImage
UIImage instance with the final annotations.
Return Value
N/A
-
The annotation view will close. The delegate may veto this action
Since
since 8.32Declaration
Swift
@objc optional func annotationViewWillClose(_ annotationView: SASAnnotationViewController, withAnnotatedImage: UIImage) -> Bool
Parameters
annotationView
The AnnotationViewController that will close.
withAnnotatedImage
UIImage instance with the final annotations.
Return Value
false
to veto the action. If the returning value is false, the application should provide the user with actions to take. -
The user has requested to share the annotation. If not implemented, the default system share menu will be presented to the user.
Since
since 8.32Declaration
Swift
@objc optional func onAnnotationImageShare(_ annotationView: SASAnnotationViewController, withAnnotatedImage: UIImage)
Parameters
annotationView
The AnnotationViewController sharing the image.
withAnnotatedImage
The image being shared.
Return Value
N/A