PSPDFAnnotationGridViewControllerDataSource
Objective-C
@protocol PSPDFAnnotationGridViewControllerDataSource<NSObject>
/// Returns number of sections.
- (NSInteger)numberOfSectionsInAnnotationGridViewController:(PSPDFAnnotationGridViewController *)annotationGridController;
/// Returns number of annotation sets per `section`.
- (NSInteger)annotationGridViewController:(PSPDFAnnotationGridViewController *)annotationGridController numberOfAnnotationsInSection:(NSInteger)section;
/// Returns the annotation set for `indexPath`.
- (PSPDFAnnotationSet *)annotationGridViewController:(PSPDFAnnotationGridViewController *)annotationGridController annotationSetForIndexPath:(NSIndexPath *)indexPath;
@end
Swift
protocol AnnotationGridViewControllerDataSource : NSObjectProtocol
Undocumented
-
Returns number of sections.
Declaration
Objective-C
- (NSInteger)numberOfSectionsInAnnotationGridViewController: (nonnull PSPDFAnnotationGridViewController *)annotationGridController;
Swift
func numberOfSections(in annotationGridController: AnnotationGridViewController) -> Int
-
Returns number of annotation sets per
section
.Declaration
Objective-C
- (NSInteger)annotationGridViewController: (nonnull PSPDFAnnotationGridViewController *) annotationGridController numberOfAnnotationsInSection:(NSInteger)section;
Swift
func annotationGridViewController(_ annotationGridController: AnnotationGridViewController, numberOfAnnotationsInSection section: Int) -> Int
-
Returns the annotation set for
indexPath
.Declaration
Objective-C
- (nonnull PSPDFAnnotationSet *) annotationGridViewController: (nonnull PSPDFAnnotationGridViewController *)annotationGridController annotationSetForIndexPath:(nonnull NSIndexPath *)indexPath;
Swift
func annotationGridViewController(_ annotationGridController: AnnotationGridViewController, annotationSetFor indexPath: IndexPath) -> PSPDFAnnotationSet