MBMViewAnnotationPositionDescriptor
@interface MBMViewAnnotationPositionDescriptor : NSObject
Read-only data that is needed to correctly position the single view annotation on screen. Used inside ViewAnnotationPositionsUpdateListener callback to notify the listener about the visible view annotations’ position updates.
-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)new NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier width:(double)width height:(double)height leftTopCoordinate:(nonnull MBMScreenCoordinate *)leftTopCoordinate anchorCoordinate:(CLLocationCoordinate2D)anchorCoordinate anchorConfig:(nonnull MBMViewAnnotationAnchorConfig *)anchorConfig NS_REFINED_FOR_SWIFT;
-
Unique id in order to lookup an actual view in platform SDKs.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *identifier;
Swift
var identifier: String { get }
-
View annotation width in
platform pixels
for drawing the annotation.Declaration
Objective-C
@property (nonatomic, readonly) double width;
Swift
var width: Double { get }
-
View annotation height in
platform pixels
for drawing the annotation.Declaration
Objective-C
@property (nonatomic, readonly) double height;
Swift
var height: Double { get }
-
Left-top screen coordinate in
platform pixels
for view annotation.Declaration
Objective-C
@property (nonatomic, readonly, nonnull) MBMScreenCoordinate *leftTopCoordinate;
Swift
var leftTopCoordinate: MBMScreenCoordinate { get }
-
The actual geometric position used for positioning this annotation.
Declaration
Objective-C
@property (nonatomic, readonly) CLLocationCoordinate2D anchorCoordinate;
Swift
var anchorCoordinate: CLLocationCoordinate2D { get }
-
The chosen anchor option for view annotation.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) MBMViewAnnotationAnchorConfig *anchorConfig;
Swift
var anchorConfig: MBMViewAnnotationAnchorConfig { get }