objc2_intents/generated/
INSpatialEventTrigger.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-location")]
6use objc2_core_location::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct INSpatialEventTrigger;
16);
17
18extern_conformance!(
19 unsafe impl NSCoding for INSpatialEventTrigger {}
20);
21
22extern_conformance!(
23 unsafe impl NSCopying for INSpatialEventTrigger {}
24);
25
26unsafe impl CopyingHelper for INSpatialEventTrigger {
27 type Result = Self;
28}
29
30extern_conformance!(
31 unsafe impl NSObjectProtocol for INSpatialEventTrigger {}
32);
33
34extern_conformance!(
35 unsafe impl NSSecureCoding for INSpatialEventTrigger {}
36);
37
38impl INSpatialEventTrigger {
39 extern_methods!(
40 #[cfg(all(feature = "INSpatialEvent", feature = "objc2-core-location"))]
41 #[unsafe(method(initWithPlacemark:event:))]
42 #[unsafe(method_family = init)]
43 pub unsafe fn initWithPlacemark_event(
44 this: Allocated<Self>,
45 placemark: &CLPlacemark,
46 event: INSpatialEvent,
47 ) -> Retained<Self>;
48
49 #[cfg(feature = "objc2-core-location")]
50 #[unsafe(method(placemark))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn placemark(&self) -> Retained<CLPlacemark>;
53
54 #[cfg(feature = "INSpatialEvent")]
55 #[unsafe(method(event))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn event(&self) -> INSpatialEvent;
58 );
59}
60
61impl INSpatialEventTrigger {
63 extern_methods!(
64 #[unsafe(method(init))]
65 #[unsafe(method_family = init)]
66 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
67
68 #[unsafe(method(new))]
69 #[unsafe(method_family = new)]
70 pub unsafe fn new() -> Retained<Self>;
71 );
72}