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
annotationViewThe AnnotationViewController that closed.
withAnnotatedImageUIImage 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) -> BoolParameters
annotationViewThe AnnotationViewController that will close.
withAnnotatedImageUIImage instance with the final annotations.
Return Value
falseto 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
annotationViewThe AnnotationViewController sharing the image.
withAnnotatedImageThe image being shared.
Return Value
N/A
View on GitHub
SASAnnotationDelegate Protocol Reference