objc2_map_kit/generated/
MKLookAroundSnapshotter.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mklookaroundsnapshotter?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct MKLookAroundSnapshotter;
15);
16
17unsafe impl NSObjectProtocol for MKLookAroundSnapshotter {}
18
19impl MKLookAroundSnapshotter {
20    extern_methods!(
21        #[unsafe(method(new))]
22        #[unsafe(method_family = new)]
23        pub unsafe fn new() -> Retained<Self>;
24
25        #[unsafe(method(init))]
26        #[unsafe(method_family = init)]
27        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
28
29        #[cfg(all(feature = "MKLookAroundScene", feature = "MKLookAroundSnapshotOptions"))]
30        #[unsafe(method(initWithScene:options:))]
31        #[unsafe(method_family = init)]
32        pub unsafe fn initWithScene_options(
33            this: Allocated<Self>,
34            scene: &MKLookAroundScene,
35            options: &MKLookAroundSnapshotOptions,
36        ) -> Retained<Self>;
37
38        #[cfg(all(feature = "MKLookAroundSnapshot", feature = "block2"))]
39        #[unsafe(method(getSnapshotWithCompletionHandler:))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn getSnapshotWithCompletionHandler(
42            &self,
43            completion_handler: &block2::Block<dyn Fn(*mut MKLookAroundSnapshot, *mut NSError)>,
44        );
45
46        #[unsafe(method(cancel))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn cancel(&self);
49
50        #[unsafe(method(isLoading))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn isLoading(&self) -> bool;
53    );
54}