PTAnnotationOptions
@interface PTAnnotationOptions : NSObject <NSCopying, NSCoding>
An object that contains options for a type of annotation.
-
Creates and returns an annotation options instance with the default values.
Declaration
Objective-C
+ (nonnull instancetype)options;Return Value
An annotation options instance with the default values.
-
Returns an initialized
PTAnnotationOptionswith the specified values.Declaration
Objective-C
- (nonnull instancetype)initWithCanCreate:(BOOL)canCreate canEdit:(BOOL)canEdit;Swift
init(canCreate: Bool, canEdit: Bool)Parameters
canCreateYESif the annotation type can be created,NOotherwise.canEditYESif the annotation type can be edited,NOotherwise.Return Value
An initialized
PTAnnotationOptionswith the specified values. -
Whether the annotation type can be created. The default value is
YES.Declaration
Objective-C
@property (nonatomic) BOOL canCreate;Swift
var canCreate: Bool { get set } -
Whether the annotation type can be edited. The default value is
YES.Declaration
Objective-C
@property (nonatomic) BOOL canEdit;Swift
var canEdit: Bool { get set } -
Compares the receiving annotation options instance to another instance.
Declaration
Objective-C
- (BOOL)isEqualToAnnotationOptions: (nonnull PTAnnotationOptions *)annotationOptions;Swift
func isEqual(to annotationOptions: PTAnnotationOptions) -> BoolParameters
annotationOptionsan other annotation options instance
Return Value
YESif the annotation options instance is equal to the receiving instance, otherwiseNO -
Undocumented
Declaration
Objective-C
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;Swift
init(coder: NSCoder)
PTAnnotationOptions Class Reference