MapKit Namespace

The MapKit namespace provides embeddable maps, annotations, and directions.

Classes

MKAnnotation

Provides annotation information to the map view.

MKAnnotation_Extensions

Extension methods to the IMKAnnotation interface to support all the methods from the MKAnnotation protocol.

MKAnnotationView

Represents an annotation in the MapView, created on demand from MKAnnotation objects.

MKAnnotationView.MKAnnotationViewAppearance

Appearance class for objects of type MKAnnotationView.

MKAnnotationViewEventArgs

Provides data for the DidSelectAnnotationView and E:MapKit.MKAnnotationViewEventArgs.DidSelectAnnotationView events.

MKCircle

The data specifying a circular overlay on a map.

MKCircleRenderer

The visual representation of a T:MapKit.MKCircle..

MKCircleView

The visual representation of a MKCircle. Developers targeting iOS 7 and later should instead use MKCircleRenderer.

MKCircleView.MKCircleViewAppearance

Appearance class for objects of type MKCircleView.

MKClusterAnnotation

An annotation that will group multiple annotations together.

MKCompassButton
MKCompassButton.MKCompassButtonAppearance

Appearance class for objects of type MKCompassButton.

MKDidAddOverlayRenderersEventArgs

Provides data for the DidAddOverlayRenderers event.

MKDidFinishRenderingMapEventArgs

Provides data for the DidFinishRenderingMap event.

MKDirections

An Apple-provided route to a destination.

MKDirectionsRequest

Encapsulates a request for travel directions.

MKDirectionsResponse

A set of routing instructions provided by Apple.

MKDistanceFormatter

Converts between distances and localized strings.

MKErrorCodeExtensions

Extension methods for the MapKit.MKErrorCode enumeration.

MKETAResponse

Travel-time data returned by Apple servers. Used with CalculateETA(MKETAHandler).

MKFeatureDisplayPriority

Enumerates annotation display priorities.

MKGeodesicPolyline

An MKPolyline that represents the great-circle distance between two locations.

MKGeometry

Helper class containing methods for calculating distances and latitude-dependent scales.

MKLaunchOptions

Encapsulates properties to be used with OpenInMaps(MKLaunchOptions).

MKLocalSearch

Encapsulates a single map-based search.

MKLocalSearchCompleter

Computes and returns completions that match local locations or points of interest for partial user search strings.

MKLocalSearchCompleterDelegate

Delegate object that receives, on behalf of a MKLocalSearchCompleter, map search completions of user input.

MKLocalSearchCompleterDelegate_Extensions

Extension methods to the IMKLocalSearchCompleterDelegate interface to support all the methods from the MKLocalSearchCompleterDelegate protocol.

MKLocalSearchCompletion

System-provided completed search term that was derived from partial user input.

MKLocalSearchRequest

Encapsulate the request properties of a MKLocalSearch map-based search.

MKLocalSearchResponse

Encapsulates the response properties of a MKLocalSearch map-based search.

MKMapCamera

The viewpoint that defines the perspective of the map.

MKMapItem

Information relating to a specific location on a map.

MKMapSnapshot

A visual snapshot of a MKMapView, produced by MKMapSnapshotter.

MKMapSnapshotOptions

A class that can be used with C:MapKit.MKMapSnapshotter(MapKit.MKSnapshotOptions to specify various options for creating MKMapSnapshots.

MKMapSnapshotter

Creates a visual MKMapSnapshot of the map, with all map tiles loaded.

MKMapView

Embeddable Map View.

MKMapView.MKMapViewAppearance

Appearance class for objects of type MKMapView.

MKMapViewAccessoryTappedEventArgs

Provides data for the CalloutAccessoryControlTapped event.

MKMapViewAnnotationEventArgs

Provides data for the DidAddAnnotationViews event.

MKMapViewChangeEventArgs

Provides data for the RegionWillChange and E:MapKit.MKMapViewChangeEventArgs.RegionWillChange events.

MKMapViewDefault
MKMapViewDelegate

Used to receive notifications from an MKMapView.

MKMapViewDelegate_Extensions

Extension methods to the IMKMapViewDelegate interface to support all the methods from the MKMapViewDelegate protocol.

MKMapViewDragStateEventArgs

Provides data for the ChangedDragState event.

MKMarkerAnnotationView
MKMarkerAnnotationView.MKMarkerAnnotationViewAppearance

Appearance class for objects of type MKMarkerAnnotationView.

MKMultiPoint

The base class for map shapes composed of multiple points.

MKOverlay

Describes a map annotation that combines a location and a geometric shape.

MKOverlay_Extensions

Extension methods to the IMKOverlay interface to support all the methods from the MKOverlay protocol.

MKOverlayPathRenderer

A MKOverlayPathRenderer whose visual representation is a CGPath.

MKOverlayPathView

A MKOverlayView whose visual reprepresentation is a CGPath. Developers targeting iOS 7 and later should instead use MKOverlayPathRenderer.

MKOverlayPathView.MKOverlayPathViewAppearance

Appearance class for objects of type MKOverlayPathView.

MKOverlayRenderer

The visual representation of a MKOverlay.

MKOverlayView

The visual representation of a MKOverlay. MKOverlayRenderer should be used instead of this class in apps targeting iOS 7 and later.

MKOverlayView.MKOverlayViewAppearance

Appearance class for objects of type MKOverlayView.

MKOverlayViewsEventArgs

Provides data for the DidAddOverlayViews event.

MKPinAnnotationView

Represents a pin-like view that can be dropped on a map.

MKPinAnnotationView.MKPinAnnotationViewAppearance

Appearance class for objects of type MKPinAnnotationView.

MKPlacemark

Combines a specific location with data such as country and human-meaningful strings (such as a street address).

MKPlacemarkAddress

Class that contains address data for a place mark.

MKPointAnnotation

A map annotation that associates a specific location with the meaningful strings (e.g., street address) of an MKShape.

MKPolygon

A map annotation that represents a closed polygon overlaid on a specific location.

MKPolygonRenderer

The visual representation of an MKPolygon annotation.

MKPolygonView

The visual representation of an MKPolygon annotation. Developers targeting iOS 7 and later should instead use MKPolygonRenderer.

MKPolygonView.MKPolygonViewAppearance

Appearance class for objects of type MKPolygonView.

MKPolyline

A map annotation that represents a series of points that define an unclosed series of lines.

MKPolylineRenderer

The visual representation of a MKPolyline.

MKPolylineView

The visual representation of an MKPolyline. Application developers targeting iOS 7 and later should prefer to use MKPolylineRenderer.

MKPolylineView.MKPolylineViewAppearance

Appearance class for objects of type MKPolylineView.

MKReverseGeocoder

Provides conversion between a specific location to information about that location (e.g., street address).

MKReverseGeocoderDelegate

When overridden, allows customization of events relating to the lifecycle of a MKReverseGeocoder.

MKRoute

A traveling route, which consists of a number of MKRouteSteps.

MKRouteStep

An element in a MKRoute, representing a single traveling instruction.

MKScaleView
MKScaleView.MKScaleViewAppearance

Appearance class for objects of type MKScaleView.

MKShape

Base class for shape-based map annotations.

MKTileOverlay

An MKOverlay that can be used in lieue of, or on top of, iOS's native map tiles.

MKTileOverlayRenderer

Draws a MKTileOverlay on a MKMapView.

MKUserLocation

An annotation that represents the user's current location on a map.

MKUserLocationEventArgs

Provides data for the DidUpdateUserLocation event.

MKUserTrackingBarButtonItem

A specialized UIBarButtonItem that allows the user to see and control the active MKUserTrackingMode .

MKUserTrackingBarButtonItem.MKUserTrackingBarButtonItemAppearance

Appearance class for objects of type MKUserTrackingBarButtonItem.

MKUserTrackingButton

A button for toggling the tracking mode.

MKUserTrackingButton.MKUserTrackingButtonAppearance

Appearance class for objects of type MKUserTrackingButton.

MMapViewUserTrackingEventArgs

Provides data for the DidChangeUserTrackingMode event.

NSUserActivity_MKMapItem

Extension class for getting and setting map items on a NSUserActivity object.

Structs

MKCoordinateRegion

Defines a region of the map to display.

MKCoordinateSpan

The area spanned by a region of the map.

MKMapPoint

A location in a 2D map projection.

MKMapRect

A rectangular area in a 2D map projection, measured in map points.

MKMapSize

The extent of a 2D map projection as measured in map points.

MKTileOverlayPath

Encapsulates the index values of a particular MKTileOverlay.

Interfaces

IMKAnnotation

Interface representing the required methods (if any) of the protocol MKAnnotation.

IMKLocalSearchCompleterDelegate

Interface representing the required methods (if any) of the protocol MKLocalSearchCompleterDelegate.

IMKMapViewDelegate

Interface representing the required methods (if any) of the protocol MKMapViewDelegate.

IMKOverlay

Interface representing the required methods (if any) of the protocol MKOverlay.

IMKReverseGeocoderDelegate

Interface representing the required methods (if any) of the protocol MKReverseGeocoderDelegate.

Enums

MKAnnotationViewCollisionMode

Enumerates collision detection modes.

MKAnnotationViewDragState

An enumeration of valid states for a dragged MKAnnotationView.

MKDirectionsMode

An enumeration of travel methods for which directions can be provided.

MKDirectionsTransportType

An enumeration whose values specify the routing type for directions requests.

MKDistanceFormatterUnits

An enumeration whose values specify the units used with MKDistanceFormatter.

MKDistanceFormatterUnitStyle

An enumeration whose values specify the length of a MKDistanceFormatter string.

MKErrorCode

An enumeration whose values represent various errors that can occur with T:MapKit.MKDirections.CalculateRoute and CalculateETA(MKETAHandler).

MKFeatureVisibility

Enumerates visibility behavior for marker titles.

MKMapType

The type of map.

MKOverlayLevel

An enumeration whose value specify whether the overlay should render above roads, but beneath labels, etc..

MKPinAnnotationColor

Color for map pins.

MKScaleViewAlignment
MKSearchCompletionFilterType

Enumerates values that control whether search queries, in addition to place results, are included in completion lists.

MKUserTrackingMode

An enumeration of valid tracking modes.

Delegates

MKCreateClusterAnnotation
MKDirectionsHandler

The completion handler for calls to CalculateDirections(MKDirectionsHandler).

MKETAHandler

The completion handler for calls to CalculateETA(MKETAHandler).

MKLocalSearchCompletionHandler

A delegate that is used to handle the results of a map-based search.

MKMapSnapshotCompletionHandler

The completion handler for StartAsync(DispatchQueue).

MKMapViewAnnotation

Signature used to return a view from an annotation.

MKMapViewOverlay

The delegate used by the GetViewForOverlay(IMKMapViewDelegate, MKMapView, IMKOverlay) property.

MKRendererForOverlayDelegate

The function, specified by the RendererForOverlay(IMKOverlay) property, that calculates the proper renderer for a given MKOverlay.

MKTileOverlayLoadTileCompletionHandler

The completion handler for LoadTileAtPath(MKTileOverlayPath, MKTileOverlayLoadTileCompletionHandler).

Remarks

You can use MapKit to embed maps in your application and displaying points of interest on them.