objc2-map-kit 0.3.2

Bindings to the MapKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mklookaroundsnapshotter?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct MKLookAroundSnapshotter;
);

extern_conformance!(
    unsafe impl NSObjectProtocol for MKLookAroundSnapshotter {}
);

impl MKLookAroundSnapshotter {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[cfg(all(feature = "MKLookAroundScene", feature = "MKLookAroundSnapshotOptions"))]
        #[unsafe(method(initWithScene:options:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithScene_options(
            this: Allocated<Self>,
            scene: &MKLookAroundScene,
            options: &MKLookAroundSnapshotOptions,
        ) -> Retained<Self>;

        #[cfg(all(feature = "MKLookAroundSnapshot", feature = "block2"))]
        #[unsafe(method(getSnapshotWithCompletionHandler:))]
        #[unsafe(method_family = none)]
        pub unsafe fn getSnapshotWithCompletionHandler(
            &self,
            completion_handler: &block2::DynBlock<dyn Fn(*mut MKLookAroundSnapshot, *mut NSError)>,
        );

        #[unsafe(method(cancel))]
        #[unsafe(method_family = none)]
        pub unsafe fn cancel(&self);

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