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