Trait MKAnnotation

Source
pub unsafe trait MKAnnotation: NSObjectProtocol {
    // Provided methods
    unsafe fn coordinate(&self) -> CLLocationCoordinate2D
       where Self: Sized + Message { ... }
    unsafe fn title(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn subtitle(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn setCoordinate(&self, new_coordinate: CLLocationCoordinate2D)
       where Self: Sized + Message { ... }
}
Available on crate feature MKAnnotation only.
Expand description

Provided Methods§

Source

unsafe fn coordinate(&self) -> CLLocationCoordinate2D
where Self: Sized + Message,

Available on crate feature objc2-core-location only.
Source

unsafe fn title(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Source

unsafe fn subtitle(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Source

unsafe fn setCoordinate(&self, new_coordinate: CLLocationCoordinate2D)
where Self: Sized + Message,

Available on crate feature objc2-core-location only.

Trait Implementations§

Source§

impl ProtocolType for dyn MKAnnotation

Source§

const NAME: &'static str = "MKAnnotation"

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 MKAnnotation
where T: ?Sized + Message + MKAnnotation,

Implementations on Foreign Types§

Source§

impl<T> MKAnnotation for ProtocolObject<T>
where T: ?Sized + MKAnnotation,

Implementors§

Source§

impl MKAnnotation for MKCircle

Available on crate feature MKCircle only.
Source§

impl MKAnnotation for MKClusterAnnotation

Available on crate feature MKClusterAnnotation only.
Source§

impl MKAnnotation for MKGeodesicPolyline

Available on crate feature MKGeodesicPolyline only.
Source§

impl MKAnnotation for MKMapItemAnnotation

Available on crate feature MKMapItemAnnotation only.
Source§

impl MKAnnotation for MKMultiPoint

Available on crate feature MKMultiPoint only.
Source§

impl MKAnnotation for MKMultiPolygon

Available on crate feature MKMultiPolygon only.
Source§

impl MKAnnotation for MKMultiPolyline

Available on crate feature MKMultiPolyline only.
Source§

impl MKAnnotation for MKPlacemark

Available on crate feature MKPlacemark only.
Source§

impl MKAnnotation for MKPointAnnotation

Available on crate feature MKPointAnnotation only.
Source§

impl MKAnnotation for MKPolygon

Available on crate feature MKPolygon only.
Source§

impl MKAnnotation for MKPolyline

Available on crate feature MKPolyline only.
Source§

impl MKAnnotation for MKShape

Available on crate feature MKShape only.
Source§

impl MKAnnotation for MKTileOverlay

Available on crate feature MKTileOverlay only.
Source§

impl MKAnnotation for MKUserLocation

Available on crate feature MKUserLocation only.