icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Contacts::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::MapKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "MapKit_MKLookAroundSceneRequest")]
    pub struct MKLookAroundSceneRequest;

    #[cfg(feature = "MapKit_MKLookAroundSceneRequest")]
    unsafe impl ClassType for MKLookAroundSceneRequest {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "MapKit_MKLookAroundSceneRequest")]
unsafe impl NSObjectProtocol for MKLookAroundSceneRequest {}

extern_methods!(
    #[cfg(feature = "MapKit_MKLookAroundSceneRequest")]
    unsafe impl MKLookAroundSceneRequest {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics Init initWithCoordinate:)]
        pub unsafe fn initWithCoordinate(
            this: Allocated<Self>,
            coordinate: CLLocationCoordinate2D,
        ) -> Id<Self>;

        #[cfg(feature = "MapKit_MKMapItem")]
        #[method_id(@__retain_semantics Init initWithMapItem:)]
        pub unsafe fn initWithMapItem(this: Allocated<Self>, map_item: &MKMapItem) -> Id<Self>;

        #[method(coordinate)]
        pub unsafe fn coordinate(&self) -> CLLocationCoordinate2D;

        #[cfg(feature = "MapKit_MKMapItem")]
        #[method_id(@__retain_semantics Other mapItem)]
        pub unsafe fn mapItem(&self) -> Option<Id<MKMapItem>>;

        #[method(isCancelled)]
        pub unsafe fn isCancelled(&self) -> bool;

        #[method(isLoading)]
        pub unsafe fn isLoading(&self) -> bool;

        #[cfg(all(feature = "Foundation_NSError", feature = "MapKit_MKLookAroundScene"))]
        #[method(getSceneWithCompletionHandler:)]
        pub unsafe fn getSceneWithCompletionHandler(
            &self,
            completion_handler: &Block<(*mut MKLookAroundScene, *mut NSError), ()>,
        );

        #[method(cancel)]
        pub unsafe fn cancel(&self);
    }
);