use crate::common::*;
use crate::AppKit::*;
use crate::Contacts::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::MapKit::*;
pub type MKMapSnapshotCompletionHandler = *mut Block<(*mut MKMapSnapshot, *mut NSError), ()>;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MapKit_MKMapSnapshotter")]
pub struct MKMapSnapshotter;
#[cfg(feature = "MapKit_MKMapSnapshotter")]
unsafe impl ClassType for MKMapSnapshotter {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MapKit_MKMapSnapshotter")]
unsafe impl NSObjectProtocol for MKMapSnapshotter {}
extern_methods!(
#[cfg(feature = "MapKit_MKMapSnapshotter")]
unsafe impl MKMapSnapshotter {
#[cfg(feature = "MapKit_MKMapSnapshotOptions")]
#[method_id(@__retain_semantics Init initWithOptions:)]
pub unsafe fn initWithOptions(
this: Allocated<Self>,
options: &MKMapSnapshotOptions,
) -> Id<Self>;
#[method(startWithCompletionHandler:)]
pub unsafe fn startWithCompletionHandler(
&self,
completion_handler: MKMapSnapshotCompletionHandler,
);
#[method(cancel)]
pub unsafe fn cancel(&self);
#[method(isLoading)]
pub unsafe fn isLoading(&self) -> bool;
}
);
extern_methods!(
#[cfg(feature = "MapKit_MKMapSnapshotter")]
unsafe impl MKMapSnapshotter {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);