Files
MapLibreParticleLab/include/mbgl/ios/MGLShape.h
Minh Nguyễn e3e73220c1 Audited shape annotation classes for nullability
Audited various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
2015-06-17 12:55:05 -07:00

19 lines
808 B
Objective-C

#import <Foundation/Foundation.h>
#import "MGLAnnotation.h"
NS_ASSUME_NONNULL_BEGIN
/** The `MGLShape` class is an abstract class that defines the basic properties for all shape-based annotation objects. This class must be subclassed and cannot be used as is. Subclasses are responsible for defining the geometry of the shape and providing an appropriate value for the coordinate property inherited from the `MGLAnnotation` protocol. */
@interface MGLShape : NSObject <MGLAnnotation>
/** The title of the shape annotation. The default value of this property is `nil`. */
@property (nonatomic, copy, nullable) NSString *title;
/** The subtitle of the shape annotation. The default value of this property is `nil`. */
@property (nonatomic, copy, nullable) NSString *subtitle;
@end
NS_ASSUME_NONNULL_END