objc2_map_kit/generated/
MKLookAroundSnapshotter.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct MKLookAroundSnapshotter;
15);
16
17extern_conformance!(
18 unsafe impl NSObjectProtocol for MKLookAroundSnapshotter {}
19);
20
21impl MKLookAroundSnapshotter {
22 extern_methods!(
23 #[unsafe(method(new))]
24 #[unsafe(method_family = new)]
25 pub unsafe fn new() -> Retained<Self>;
26
27 #[unsafe(method(init))]
28 #[unsafe(method_family = init)]
29 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
30
31 #[cfg(all(feature = "MKLookAroundScene", feature = "MKLookAroundSnapshotOptions"))]
32 #[unsafe(method(initWithScene:options:))]
33 #[unsafe(method_family = init)]
34 pub unsafe fn initWithScene_options(
35 this: Allocated<Self>,
36 scene: &MKLookAroundScene,
37 options: &MKLookAroundSnapshotOptions,
38 ) -> Retained<Self>;
39
40 #[cfg(all(feature = "MKLookAroundSnapshot", feature = "block2"))]
41 #[unsafe(method(getSnapshotWithCompletionHandler:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn getSnapshotWithCompletionHandler(
44 &self,
45 completion_handler: &block2::DynBlock<dyn Fn(*mut MKLookAroundSnapshot, *mut NSError)>,
46 );
47
48 #[unsafe(method(cancel))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn cancel(&self);
51
52 #[unsafe(method(isLoading))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn isLoading(&self) -> bool;
55 );
56}