Trait MKMapViewDelegate

Source
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§

Source

unsafe fn mapView_regionWillChangeAnimated( &self, map_view: &MKMapView, animated: bool, )
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_regionDidChangeAnimated( &self, map_view: &MKMapView, animated: bool, )
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapViewDidChangeVisibleRegion(&self, map_view: &MKMapView)
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapViewWillStartLoadingMap(&self, map_view: &MKMapView)
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapViewDidFinishLoadingMap(&self, map_view: &MKMapView)
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapViewDidFailLoadingMap_withError( &self, map_view: &MKMapView, error: &NSError, )
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapViewWillStartRenderingMap(&self, map_view: &MKMapView)
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapViewDidFinishRenderingMap_fullyRendered( &self, map_view: &MKMapView, fully_rendered: bool, )
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_viewForAnnotation( &self, map_view: &MKMapView, annotation: &ProtocolObject<dyn MKAnnotation>, ) -> Option<Retained<MKAnnotationView>>
where Self: Sized + Message,

Available on crate feature MKAnnotation and crate feature MKAnnotationView and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_didAddAnnotationViews( &self, map_view: &MKMapView, views: &NSArray<MKAnnotationView>, )
where Self: Sized + Message,

Available on crate feature MKAnnotationView and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_didSelectAnnotationView( &self, map_view: &MKMapView, view: &MKAnnotationView, )
where Self: Sized + Message,

Available on crate feature MKAnnotationView and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_didDeselectAnnotationView( &self, map_view: &MKMapView, view: &MKAnnotationView, )
where Self: Sized + Message,

Available on crate feature MKAnnotationView and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_didSelectAnnotation( &self, map_view: &MKMapView, annotation: &ProtocolObject<dyn MKAnnotation>, )
where Self: Sized + Message,

Available on crate feature MKAnnotation and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_didDeselectAnnotation( &self, map_view: &MKMapView, annotation: &ProtocolObject<dyn MKAnnotation>, )
where Self: Sized + Message,

Available on crate feature MKAnnotation and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_selectionAccessoryForAnnotation( &self, map_view: &MKMapView, annotation: &ProtocolObject<dyn MKAnnotation>, ) -> Option<Retained<MKSelectionAccessory>>
where Self: Sized + Message,

Available on crate feature MKAnnotation and crate feature MKSelectionAccessory and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapViewWillStartLocatingUser(&self, map_view: &MKMapView)
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapViewDidStopLocatingUser(&self, map_view: &MKMapView)
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_didUpdateUserLocation( &self, map_view: &MKMapView, user_location: &MKUserLocation, )
where Self: Sized + Message,

Available on crate feature MKUserLocation and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_didFailToLocateUserWithError( &self, map_view: &MKMapView, error: &NSError, )
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_annotationView_didChangeDragState_fromOldState( &self, map_view: &MKMapView, view: &MKAnnotationView, new_state: MKAnnotationViewDragState, old_state: MKAnnotationViewDragState, )
where Self: Sized + Message,

Available on crate feature MKAnnotationView and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_didChangeUserTrackingMode_animated( &self, map_view: &MKMapView, mode: MKUserTrackingMode, animated: bool, )
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_rendererForOverlay( &self, map_view: &MKMapView, overlay: &ProtocolObject<dyn MKOverlay>, ) -> Retained<MKOverlayRenderer>
where Self: Sized + Message,

Available on crate feature MKAnnotation and crate feature MKOverlay and crate feature MKOverlayRenderer and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_didAddOverlayRenderers( &self, map_view: &MKMapView, renderers: &NSArray<MKOverlayRenderer>, )
where Self: Sized + Message,

Available on crate feature MKOverlayRenderer and crate feature objc2-app-kit and macOS only.
Source

unsafe fn mapView_clusterAnnotationForMemberAnnotations( &self, map_view: &MKMapView, member_annotations: &NSArray<ProtocolObject<dyn MKAnnotation>>, ) -> Retained<MKClusterAnnotation>
where Self: Sized + Message,

Available on crate feature MKAnnotation and crate feature MKClusterAnnotation and crate feature objc2-app-kit and macOS only.

Trait Implementations§

Source§

impl ProtocolType for dyn MKMapViewDelegate

Source§

const NAME: &'static str = "MKMapViewDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn MKMapViewDelegate

Implementations on Foreign Types§

Source§

impl<T> MKMapViewDelegate for ProtocolObject<T>

Implementors§