pub unsafe trait MKMapViewDelegate: NSObjectProtocol + MainThreadOnly {
Show 24 methods
// Provided methods
unsafe fn mapView_regionWillChangeAnimated(
&self,
map_view: &MKMapView,
animated: bool,
)
where Self: Sized + Message { ... }
unsafe fn mapView_regionDidChangeAnimated(
&self,
map_view: &MKMapView,
animated: bool,
)
where Self: Sized + Message { ... }
unsafe fn mapViewDidChangeVisibleRegion(&self, map_view: &MKMapView)
where Self: Sized + Message { ... }
unsafe fn mapViewWillStartLoadingMap(&self, map_view: &MKMapView)
where Self: Sized + Message { ... }
unsafe fn mapViewDidFinishLoadingMap(&self, map_view: &MKMapView)
where Self: Sized + Message { ... }
unsafe fn mapViewDidFailLoadingMap_withError(
&self,
map_view: &MKMapView,
error: &NSError,
)
where Self: Sized + Message { ... }
unsafe fn mapViewWillStartRenderingMap(&self, map_view: &MKMapView)
where Self: Sized + Message { ... }
unsafe fn mapViewDidFinishRenderingMap_fullyRendered(
&self,
map_view: &MKMapView,
fully_rendered: bool,
)
where Self: Sized + Message { ... }
unsafe fn mapView_viewForAnnotation(
&self,
map_view: &MKMapView,
annotation: &ProtocolObject<dyn MKAnnotation>,
) -> Option<Retained<MKAnnotationView>>
where Self: Sized + Message { ... }
unsafe fn mapView_didAddAnnotationViews(
&self,
map_view: &MKMapView,
views: &NSArray<MKAnnotationView>,
)
where Self: Sized + Message { ... }
unsafe fn mapView_didSelectAnnotationView(
&self,
map_view: &MKMapView,
view: &MKAnnotationView,
)
where Self: Sized + Message { ... }
unsafe fn mapView_didDeselectAnnotationView(
&self,
map_view: &MKMapView,
view: &MKAnnotationView,
)
where Self: Sized + Message { ... }
unsafe fn mapView_didSelectAnnotation(
&self,
map_view: &MKMapView,
annotation: &ProtocolObject<dyn MKAnnotation>,
)
where Self: Sized + Message { ... }
unsafe fn mapView_didDeselectAnnotation(
&self,
map_view: &MKMapView,
annotation: &ProtocolObject<dyn MKAnnotation>,
)
where Self: Sized + Message { ... }
unsafe fn mapView_selectionAccessoryForAnnotation(
&self,
map_view: &MKMapView,
annotation: &ProtocolObject<dyn MKAnnotation>,
) -> Option<Retained<MKSelectionAccessory>>
where Self: Sized + Message { ... }
unsafe fn mapViewWillStartLocatingUser(&self, map_view: &MKMapView)
where Self: Sized + Message { ... }
unsafe fn mapViewDidStopLocatingUser(&self, map_view: &MKMapView)
where Self: Sized + Message { ... }
unsafe fn mapView_didUpdateUserLocation(
&self,
map_view: &MKMapView,
user_location: &MKUserLocation,
)
where Self: Sized + Message { ... }
unsafe fn mapView_didFailToLocateUserWithError(
&self,
map_view: &MKMapView,
error: &NSError,
)
where Self: Sized + Message { ... }
unsafe fn mapView_annotationView_didChangeDragState_fromOldState(
&self,
map_view: &MKMapView,
view: &MKAnnotationView,
new_state: MKAnnotationViewDragState,
old_state: MKAnnotationViewDragState,
)
where Self: Sized + Message { ... }
unsafe fn mapView_didChangeUserTrackingMode_animated(
&self,
map_view: &MKMapView,
mode: MKUserTrackingMode,
animated: bool,
)
where Self: Sized + Message { ... }
unsafe fn mapView_rendererForOverlay(
&self,
map_view: &MKMapView,
overlay: &ProtocolObject<dyn MKOverlay>,
) -> Retained<MKOverlayRenderer>
where Self: Sized + Message { ... }
unsafe fn mapView_didAddOverlayRenderers(
&self,
map_view: &MKMapView,
renderers: &NSArray<MKOverlayRenderer>,
)
where Self: Sized + Message { ... }
unsafe fn mapView_clusterAnnotationForMemberAnnotations(
&self,
map_view: &MKMapView,
member_annotations: &NSArray<ProtocolObject<dyn MKAnnotation>>,
) -> Retained<MKClusterAnnotation>
where Self: Sized + Message { ... }
}
Available on crate feature
MKMapView
only.Expand description
Provided Methods§
unsafe fn mapView_regionWillChangeAnimated( &self, map_view: &MKMapView, animated: bool, )
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapView_regionDidChangeAnimated( &self, map_view: &MKMapView, animated: bool, )
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapViewDidChangeVisibleRegion(&self, map_view: &MKMapView)
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapViewWillStartLoadingMap(&self, map_view: &MKMapView)
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapViewDidFinishLoadingMap(&self, map_view: &MKMapView)
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapViewDidFailLoadingMap_withError( &self, map_view: &MKMapView, error: &NSError, )
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapViewWillStartRenderingMap(&self, map_view: &MKMapView)
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapViewDidFinishRenderingMap_fullyRendered( &self, map_view: &MKMapView, fully_rendered: bool, )
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapView_viewForAnnotation( &self, map_view: &MKMapView, annotation: &ProtocolObject<dyn MKAnnotation>, ) -> Option<Retained<MKAnnotationView>>
Available on crate feature
MKAnnotation
and crate feature MKAnnotationView
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_didAddAnnotationViews( &self, map_view: &MKMapView, views: &NSArray<MKAnnotationView>, )
Available on crate feature
MKAnnotationView
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_didSelectAnnotationView( &self, map_view: &MKMapView, view: &MKAnnotationView, )
Available on crate feature
MKAnnotationView
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_didDeselectAnnotationView( &self, map_view: &MKMapView, view: &MKAnnotationView, )
Available on crate feature
MKAnnotationView
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_didSelectAnnotation( &self, map_view: &MKMapView, annotation: &ProtocolObject<dyn MKAnnotation>, )
Available on crate feature
MKAnnotation
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_didDeselectAnnotation( &self, map_view: &MKMapView, annotation: &ProtocolObject<dyn MKAnnotation>, )
Available on crate feature
MKAnnotation
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_selectionAccessoryForAnnotation( &self, map_view: &MKMapView, annotation: &ProtocolObject<dyn MKAnnotation>, ) -> Option<Retained<MKSelectionAccessory>>
Available on crate feature
MKAnnotation
and crate feature MKSelectionAccessory
and crate feature objc2-app-kit
and macOS only.unsafe fn mapViewWillStartLocatingUser(&self, map_view: &MKMapView)
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapViewDidStopLocatingUser(&self, map_view: &MKMapView)
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapView_didUpdateUserLocation( &self, map_view: &MKMapView, user_location: &MKUserLocation, )
Available on crate feature
MKUserLocation
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_didFailToLocateUserWithError( &self, map_view: &MKMapView, error: &NSError, )
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapView_annotationView_didChangeDragState_fromOldState( &self, map_view: &MKMapView, view: &MKAnnotationView, new_state: MKAnnotationViewDragState, old_state: MKAnnotationViewDragState, )
Available on crate feature
MKAnnotationView
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_didChangeUserTrackingMode_animated( &self, map_view: &MKMapView, mode: MKUserTrackingMode, animated: bool, )
Available on crate feature
objc2-app-kit
and macOS only.unsafe fn mapView_rendererForOverlay( &self, map_view: &MKMapView, overlay: &ProtocolObject<dyn MKOverlay>, ) -> Retained<MKOverlayRenderer>
Available on crate feature
MKAnnotation
and crate feature MKOverlay
and crate feature MKOverlayRenderer
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_didAddOverlayRenderers( &self, map_view: &MKMapView, renderers: &NSArray<MKOverlayRenderer>, )
Available on crate feature
MKOverlayRenderer
and crate feature objc2-app-kit
and macOS only.unsafe fn mapView_clusterAnnotationForMemberAnnotations( &self, map_view: &MKMapView, member_annotations: &NSArray<ProtocolObject<dyn MKAnnotation>>, ) -> Retained<MKClusterAnnotation>
Available on crate feature
MKAnnotation
and crate feature MKClusterAnnotation
and crate feature objc2-app-kit
and macOS only.