PTAnnotationViewControllerConfiguration


@interface PTAnnotationViewControllerConfiguration : NSObject <NSCopying>

The configuration settings used by a PTAnnotationViewController.

  • Initializes a newly created PTAnnotationViewControllerConfiguration instance.

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    init()

    Return Value

    an initialized PTAnnotationViewControllerConfiguration instance

  • Initializes a newly created PTAnnotationViewControllerConfiguration instance with the specified configuration. The properties from configuration are copied to this instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithConfiguration:
        (nonnull PTAnnotationViewControllerConfiguration *)configuration;

    Swift

    init(configuration: PTAnnotationViewControllerConfiguration)

    Return Value

    an initialized PTAnnotationViewControllerConfiguration instance

  • Whether the type names of annotations are displayed.

    The default value of this property is YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL displayAnnotationTypes;

    Swift

    var displayAnnotationTypes: Bool { get set }
  • Whether the authors of annotations are displayed.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (nonatomic) BOOL displayAnnotationAuthors;

    Swift

    var displayAnnotationAuthors: Bool { get set }