MQLocationCoordinate2DArray

@interface MQLocationCoordinate2DArray : NSObject

Wrapper class to hold a primitive (C style) type array and count of items in the array

  • An array of coordinates

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) CLLocationCoordinate2D *coordinateArray;

    Swift

    var coordinateArray: UnsafeMutablePointer<CLLocationCoordinate2D> { get }
  • Number of coordinates in the coordinateArray

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSUInteger count;

    Swift

    var count: UInt { get set }
  • Init method for the class

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLocations:
        (nonnull NSArray<CLLocation *> *)locations;

    Swift

    init(locations: [CLLocation])

    Parameters

    locations

    Array of coordinates

    Return Value

    returns an instance of MQLocationCoordinate2DArray

  • We do not support init on this object

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Return Value

    nothing