Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Created June 5, 2015 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolfbjarne/58dd9f9c6d1da40b8042 to your computer and use it in GitHub Desktop.
Save rolfbjarne/58dd9f9c6d1da40b8042 to your computer and use it in GitHub Desktop.
[Protocol, Model]
[BaseType (typeof (NSObject))]
interface PSPDFViewControllerDelegate {
[Abstract]
[Export ("pdfViewController:shouldChangeDocument:")]
bool ShouldChangeDocument (PSPDFViewController pdfController, [NullAllowed] PSPDFDocument document);
[Export ("pdfViewController:didChangeDocument:")]
void DidChangeDocument (PSPDFViewController pdfController, [NullAllowed] PSPDFDocument document);
[Abstract]
[Export ("pdfViewController:shouldScrollToPage:")]
bool ShouldScrollToPage (PSPDFViewController pdfController, nuint page);
[Abstract]
[Export ("pdfViewController:didShowPageView:")]
void DidShowPageView (PSPDFViewController pdfController, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:didRenderPageView:")]
void DidRenderPageView (PSPDFViewController pdfController, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:didLoadPageView:")]
void DidLoadPageView (PSPDFViewController pdfController, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:willUnloadPageView:")]
void WillUnloadPageView (PSPDFViewController pdfController, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:didBeginPageDragging:")]
void DidBeginPageDragging (PSPDFViewController pdfController, UIScrollView scrollView);
[Abstract]
[Export ("pdfViewController:didEndPageDragging:willDecelerate:withVelocity:targetContentOffset:")]
void DidEndPageDragging (PSPDFViewController pdfController, UIScrollView scrollView, bool decelerate, CGPoint velocity, CGPoint targetContentOffset);
[Abstract]
[Export ("pdfViewController:didEndPageScrollingAnimation:")]
void DidEndPageScrollingAnimation (PSPDFViewController pdfController, UIScrollView scrollView);
[Abstract]
[Export ("pdfViewController:didBeginPageZooming:")]
void DidBeginPageZooming (PSPDFViewController pdfController, UIScrollView scrollView);
[Abstract]
[Export ("pdfViewController:didEndPageZooming:atScale:")]
void DidEndPageZooming (PSPDFViewController pdfController, UIScrollView scrollView, nfloat scale);
[Abstract]
[Export ("pdfViewController:documentForRelativePath:")]
PSPDFDocument DocumentForRelativePath (PSPDFViewController pdfController, string relativePath);
[Abstract]
[Export ("pdfViewController:didTapOnPageView:atPoint:")]
bool DidTapOnPageView (PSPDFViewController pdfController, PSPDFPageView pageView, CGPoint viewPoint);
[Abstract]
[Export ("pdfViewController:didLongPressOnPageView:atPoint:gestureRecognizer:")]
bool DidLongPressOnPageView (PSPDFViewController pdfController, PSPDFPageView pageView, CGPoint viewPoint, UILongPressGestureRecognizer gestureRecognizer);
[Abstract]
[Export ("pdfViewController:shouldSelectText:withGlyphs:atRect:onPageView:")]
bool ShouldSelectText (PSPDFViewController pdfController, string text, PSPDFGlyph[] glyphs, CGRect rect, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:didSelectText:withGlyphs:atRect:onPageView:")]
void DidSelectText (PSPDFViewController pdfController, string text, PSPDFGlyph[] glyphs, CGRect rect, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:shouldShowMenuItems:atSuggestedTargetRect:forSelectedText:inRect:onPageView:")]
PSPDFMenuItem [] ShouldShowMenuItemsForSelectedText (PSPDFViewController pdfController, PSPDFMenuItem[] menuItems, CGRect rect, string selectedText, CGRect textRect, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:shouldShowMenuItems:atSuggestedTargetRect:forSelectedImage:inRect:onPageView:")]
PSPDFMenuItem [] ShouldShowMenuItemsForSelectedImage (PSPDFViewController pdfController, PSPDFMenuItem[] menuItems, CGRect rect, PSPDFImageInfo selectedImage, CGRect textRect, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:shouldShowMenuItems:atSuggestedTargetRect:forAnnotations:inRect:onPageView:")]
PSPDFMenuItem [] ShouldShowMenuItemsForAnnotations (PSPDFViewController pdfController, PSPDFMenuItem[] menuItems, CGRect rect, [NullAllowed] PSPDFAnnotation[] annotations, CGRect annotationRect, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:shouldDisplayAnnotation:onPageView:")]
bool ShouldDisplayAnnotation (PSPDFViewController pdfController, PSPDFAnnotation annotation, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:didTapOnAnnotation:annotationPoint:annotationView:pageView:viewPoint:")]
bool DidTapOnAnnotation (PSPDFViewController pdfController, PSPDFAnnotation annotation, CGPoint annotationPoint, [NullAllowed] IPSPDFAnnotationViewProtocol annotationView, PSPDFPageView pageView, CGPoint viewPoint);
[Abstract]
[Export ("pdfViewController:shouldSelectAnnotations:onPageView:")]
PSPDFAnnotation [] ShouldSelectAnnotations (PSPDFViewController pdfController, PSPDFAnnotation[] annotations, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:didSelectAnnotations:onPageView:")]
void DidSelectAnnotations (PSPDFViewController pdfController, NSObject[] annotations, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:annotationView:forAnnotation:onPageView:")]
IPSPDFAnnotationViewProtocol AnnotationView (PSPDFViewController pdfController, [NullAllowed] IPSPDFAnnotationViewProtocol annotationView, PSPDFAnnotation annotation, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:willShowAnnotationView:onPageView:")]
void WillShowAnnotationView (PSPDFViewController pdfController, IPSPDFAnnotationViewProtocol annotationView, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:didShowAnnotationView:onPageView:")]
void DidShowAnnotationView (PSPDFViewController pdfController, IPSPDFAnnotationViewProtocol annotationView, PSPDFPageView pageView);
[Abstract]
[Export ("pdfViewController:shouldShowController:embeddedInController:options:animated:")]
bool ShouldShowController (PSPDFViewController pdfController, IPSPDFPresentableViewController controller, [NullAllowed] IPSPDFHostableViewController hostController, NSDictionary options, bool animated);
[Abstract]
[Export ("pdfViewController:didShowController:embeddedInController:options:animated:")]
void DidShowController (PSPDFViewController pdfController, IPSPDFPresentableViewController controller, [NullAllowed] IPSPDFHostableViewController hostController, NSDictionary options, bool animated);
[Abstract]
[Export ("pdfViewController:didChangeViewMode:")]
void DidChangeViewMode (PSPDFViewController pdfController, PSPDFViewMode viewMode);
[Abstract]
[Export ("pdfViewControllerWillDismiss:")]
void PdfViewControllerWillDismiss (PSPDFViewController pdfController);
[Abstract]
[Export ("pdfViewControllerDidDismiss:")]
void PdfViewControllerDidDismiss (PSPDFViewController pdfController);
[Abstract]
[Export ("pdfViewController:shouldShowHUD:")]
bool ShouldShowHud (PSPDFViewController pdfController, bool animated);
[Abstract]
[Export ("pdfViewController:didShowHUD:")]
void DidShowHud (PSPDFViewController pdfController, bool animated);
[Abstract]
[Export ("pdfViewController:shouldHideHUD:")]
bool ShouldHideHud (PSPDFViewController pdfController, bool animated);
[Abstract]
[Export ("pdfViewController:didHideHUD:")]
void DidHideHud (PSPDFViewController pdfController, bool animated);
[Abstract]
[Export ("pdfViewController:shouldExecuteAction:")]
void ShouldExecuteAction (PSPDFViewController pdfController, PSPDFAction action);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment