PSPDFAnnotationMenuConfiguration

Objective-C


@interface PSPDFAnnotationMenuConfiguration
    : PSPDFBaseConfiguration <PSPDFAnnotationMenuConfigurationBuilder *>

Swift

class AnnotationMenuConfiguration : BaseConfiguration<AnnotationMenuConfiguration.Builder>

An object that configures the annotation menu.

  • The closure that provides an array of choices that should be included in the menu for changing the alpha property of the given annotation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NS_REFINED_FOR_SWIFT NSArray<NSNumber *> *_Nonnull (^) (PSPDFAnnotation *_Nonnull, PSPDFPageView *_Nonnull, NSArray<NSNumber *> *_Nonnull) alphaChoices;

    Return Value

    An array of choices to include in the menu for changing the alpha property of the given annotation.

  • The closure that provides an array of choices that should be included in the menu for changing the given color property of the given annotation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<UIColor *> *_Nonnull (^_Nonnull) (PSPDFAnnotationMenuConfigurationColorProperty, PSPDFAnnotation *_Nonnull, PSPDFPageView *_Nonnull, NSArray<UIColor *> *_Nonnull) colorChoices;

    Swift

    var colorChoices: (AnnotationMenuConfiguration.ColorProperty, PSPDFAnnotation, PSPDFPageView, [UIColor]) -> [UIColor] { get }

    Return Value

    An array of choices to include in the menu for changing the given color property of the given annotation.

  • The closure that provides an array of choices that should be included in the menu for changing the fontSize property of the given annotation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NS_REFINED_FOR_SWIFT NSArray<NSNumber *> *_Nonnull (^) (PSPDFFreeTextAnnotation *_Nonnull, PSPDFPageView *_Nonnull, NSArray<NSNumber *> *_Nonnull) fontSizeChoices;

    Return Value

    An array of choices to include in the menu for changing the fontSize property of the given annotation.

  • The closure that provides an array of choices that should be included in the menu for changing the given line end property of the given annotation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NS_REFINED_FOR_SWIFT NSArray<NSNumber *> *_Nonnull (^) (PSPDFAnnotationMenuConfigurationLineEndProperty, PSPDFAbstractLineAnnotation *_Nonnull, PSPDFPageView *_Nonnull, NSArray<NSNumber *> *_Nonnull) lineEndChoices;

    Return Value

    An array of choices to include in the menu for changing the given line end property of the given annotation.

  • The closure that provides an array of choices that should be included in the menu for changing the lineWidth property of the given annotation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NS_REFINED_FOR_SWIFT NSArray<NSNumber *> *_Nonnull (^) (PSPDFAnnotation *_Nonnull, PSPDFPageView *_Nonnull, NSArray<NSNumber *> *_Nonnull) lineWidthChoices;

    Return Value

    An array of choices to include in the menu for changing the lineWidth property of the given annotation.

  • The closure that provides an array of choices that should be included in the menu for changing the alpha property of the given annotation.

    Declaration

    Swift

    public var alphaChoices: (_ annotation: Annotation, _ pageView: PDFPageView, _ defaultChoices: [CGFloat]) -> [CGFloat] { get }

    Parameters

    annotation

    The annotation in question.

    pageView

    The page view on which the annotation is.

    defaultChoices

    The array of default choices.

    Return Value

    An array of choices to include in the menu for changing the alpha property of the given annotation.

  • The closure that provides an array of choices that should be included in the menu for changing the fontSize property of the given annotation.

    Declaration

    Swift

    public var fontSizeChoices: (_ annotation: FreeTextAnnotation, _ pageView: PDFPageView, _ defaultChoices: [CGFloat]) -> [CGFloat] { get }

    Parameters

    annotation

    The annotation in question.

    pageView

    The page view on which the annotation is.

    defaultChoices

    The array of default choices.

    Return Value

    An array of choices to include in the menu for changing the fontSize property of the given annotation.

  • The closure that provides an array of choices that should be included in the menu for changing the given line end property of the given annotation.

    Declaration

    Swift

    public var lineEndChoices: (_ property: AnnotationMenuConfiguration.LineEndProperty, _ annotation: AbstractLineAnnotation, _ pageView: PDFPageView, _ defaultChoices: [AbstractLineAnnotation.EndType]) -> [AbstractLineAnnotation.EndType] { get }

    Parameters

    property

    The line end property.

    annotation

    The annotation in question.

    pageView

    The page view on which the annotation is.

    defaultChoices

    The array of default choices.

    Return Value

    An array of choices to include in the menu for changing the given line end property of the given annotation.

  • The closure that provides an array of choices that should be included in the menu for changing the lineWidth property of the given annotation.

    Declaration

    Swift

    public var lineWidthChoices: (_ annotation: Annotation, _ pageView: PDFPageView, _ defaultChoices: [CGFloat]) -> [CGFloat] { get }

    Parameters

    annotation

    The annotation in question.

    pageView

    The page view on which the annotation is.

    defaultChoices

    The array of default choices.

    Return Value

    An array of choices to include in the menu for changing the lineWidth property of the given annotation.