VGSPDFViewDelegate
@available(iOS 11.0, *)
@objc
public protocol VGSPDFViewDelegate
Delegate methods produced by VGSPDFView
.
-
Tells the delegate the document was displayed in view.
Declaration
Swift
@objc optional func documentDidChange(in pdfView: VGSPDFView)
Parameters
pdfView
VGSPDFView
view in which document was changed. Discussion. A pdf view sends this message to its delegate just after it updated the document. -
Tells the delegate when pdf view encounters an error.
Declaration
Swift
@objc optional func pdfView(_ pdfView: VGSPDFView, didFailWithError error: VGSShowError)
Parameters
pdfView
VGSPDFView
view in which error was occurred.error
VGSShowError
object, contains error information.