public interface MKMapViewDelegate
Modifier and Type | Method and Description |
---|---|
default void |
annotationViewCalloutAccessoryControlTapped(MKMapView mapView,
MKAnnotationView annotationView,
UIControl control)
It is used when the accessory button of the specified annotation view of
the related mapview was tapped.
|
default void |
annotationViewDidChangeDragState(MKMapView mapView,
MKAnnotationView annotationView,
int MKAnnotationViewDragStateNew,
int MKAnnotationViewDragStateOld)
It is used when there was a change on the drag state of one annotation
view of this map view.
|
default void |
didAddAnnotationViews(MKMapView mapView,
List<MKAnnotationView> views)
It is used when one or more annotations were added to the mapview.
|
default void |
didAddOverlayViews(MKMapView mapView,
List<MKOverlayView> overlayViews)
Deprecated.
|
default void |
didDeselectAnnotationView(MKMapView mapView,
MKAnnotationView annotationView)
It is used when one annotation view of the related map is deselected.
|
default void |
didFailLoadingMap(MKMapView mapView,
NSError error)
It is used when there was an error during the data retrieval of this
mapview.
|
default void |
didFailToLocateUserWithError(MKMapView mapView,
NSError error)
It is used when there is an error during user's position tracking.
|
default void |
didFinishLoadingMap(MKMapView mapView)
It is used right after the data retrieval of this map view.
|
default void |
didSelectAnnotationView(MKMapView mapView,
MKAnnotationView annotationView)
It is used when one annotation view of the related map is selected.
|
default void |
didStopLocatingUser(MKMapView mapView)
It is used right after the end of user's position tracking.
|
default void |
didUpdateUserLocation(MKMapView mapView,
MKUserLocation userLocation)
It is used when user's location is updated.
|
default void |
regionDidChangeAnimated(MKMapView mapView,
boolean animated)
It is used right after a change of the displayed map's region occurred
with animation or not.
|
default void |
regionWillChangeAnimated(MKMapView mapView,
boolean animated)
It is used right before a change of the displayed map's region occurs
with animation or not.
|
default MKAnnotationView |
viewForAnnotation(MKMapView mapView,
MKAnnotation annotation)
Returns the annotation view of the specified annotation of this mapview.
|
default MKOverlayView |
viewForOverlay(MKMapView mapView,
MKOverlay overlay)
Deprecated.
|
default void |
willStartLoadingMap(MKMapView mapView)
It is used right before the data retrieval of this map view.
|
default void |
willStartLocatingUser(MKMapView mapView)
It is used right before the user's position tracking.
|
default void regionWillChangeAnimated(MKMapView mapView, boolean animated)
mapView
- The mapview that corresponds to this delegate.animated
- TRUE then the change will be animated.default void regionDidChangeAnimated(MKMapView mapView, boolean animated)
mapView
- The mapview that corresponds to this delegate.animated
- TRUE then the change was animated.default void willStartLoadingMap(MKMapView mapView)
mapView
- The mapview that corresponds to this delegate.default void didFinishLoadingMap(MKMapView mapView)
mapView
- The mapview that corresponds to this delegate.default void didFailLoadingMap(MKMapView mapView, NSError error)
mapView
- The mapview that corresponds to this delegate.error
- The error that occurred during retrieval.default void willStartLocatingUser(MKMapView mapView)
mapView
- The mapview that corresponds to this delegate.default void didStopLocatingUser(MKMapView mapView)
mapView
- The mapview that corresponds to this delegate.default void didUpdateUserLocation(MKMapView mapView, MKUserLocation userLocation)
mapView
- The mapview that corresponds to this delegate.userLocation
- The new location of the user.default void didFailToLocateUserWithError(MKMapView mapView, NSError error)
mapView
- The mapview that corresponds to this delegate.error
- The error that occurred during tracking.default MKAnnotationView viewForAnnotation(MKMapView mapView, MKAnnotation annotation)
mapView
- The mapview that corresponds to this delegate.annotation
- The annotation for which the view is requested.default void didAddAnnotationViews(MKMapView mapView, List<MKAnnotationView> views)
mapView
- The mapview that corresponds to this delegate.views
- The list of the added annotation views.default void annotationViewCalloutAccessoryControlTapped(MKMapView mapView, MKAnnotationView annotationView, UIControl control)
mapView
- The mapview that corresponds to this delegate.annotationView
- The annotation view of the accessory button.control
- The tapped control.default void annotationViewDidChangeDragState(MKMapView mapView, MKAnnotationView annotationView, int MKAnnotationViewDragStateNew, int MKAnnotationViewDragStateOld)
mapView
- The mapview that corresponds to this delegate.annotationView
- The annotation view of whose drag state changed.MKAnnotationViewDragStateNew
- The new drag state of the annotation
view.MKAnnotationViewDragStateOld
- The old drag state of the annotation
view.default void didSelectAnnotationView(MKMapView mapView, MKAnnotationView annotationView)
mapView
- The mapview that corresponds to this delegate.annotationView
- The selected annotation view.default void didDeselectAnnotationView(MKMapView mapView, MKAnnotationView annotationView)
mapView
- The mapview that corresponds to this delegate.annotationView
- The deselected annotation view.@Deprecated default MKOverlayView viewForOverlay(MKMapView mapView, MKOverlay overlay)
mapView
- The mapview that corresponds to this delegate.overlay
- The overlay for which the overlay view is requested.@Deprecated default void didAddOverlayViews(MKMapView mapView, List<MKOverlayView> overlayViews)
mapView
- The mapview that corresponds to this delegate.overlayViews
- The overlay views that were added.Copyright © 2020. All rights reserved.