1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-contacts")]
use objc2_contacts::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct CLPlacemark;

    unsafe impl ClassType for CLPlacemark {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

unsafe impl NSCoding for CLPlacemark {}

unsafe impl NSCopying for CLPlacemark {}

unsafe impl NSObjectProtocol for CLPlacemark {}

unsafe impl NSSecureCoding for CLPlacemark {}

extern_methods!(
    unsafe impl CLPlacemark {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;

        #[method_id(@__retain_semantics Init initWithPlacemark:)]
        pub unsafe fn initWithPlacemark(this: Allocated<Self>, placemark: &CLPlacemark)
            -> Id<Self>;

        #[cfg(feature = "CLLocation")]
        #[method_id(@__retain_semantics Other location)]
        pub unsafe fn location(&self) -> Option<Id<CLLocation>>;

        #[cfg(feature = "CLRegion")]
        #[method_id(@__retain_semantics Other region)]
        pub unsafe fn region(&self) -> Option<Id<CLRegion>>;

        #[method_id(@__retain_semantics Other timeZone)]
        pub unsafe fn timeZone(&self) -> Option<Id<NSTimeZone>>;

        #[deprecated = "Use @properties"]
        #[method_id(@__retain_semantics Other addressDictionary)]
        pub unsafe fn addressDictionary(&self) -> Option<Id<NSDictionary>>;

        #[method_id(@__retain_semantics Other name)]
        pub unsafe fn name(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other thoroughfare)]
        pub unsafe fn thoroughfare(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other subThoroughfare)]
        pub unsafe fn subThoroughfare(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other locality)]
        pub unsafe fn locality(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other subLocality)]
        pub unsafe fn subLocality(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other administrativeArea)]
        pub unsafe fn administrativeArea(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other subAdministrativeArea)]
        pub unsafe fn subAdministrativeArea(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other postalCode)]
        pub unsafe fn postalCode(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other ISOcountryCode)]
        pub unsafe fn ISOcountryCode(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other country)]
        pub unsafe fn country(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other inlandWater)]
        pub unsafe fn inlandWater(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other ocean)]
        pub unsafe fn ocean(&self) -> Option<Id<NSString>>;

        #[method_id(@__retain_semantics Other areasOfInterest)]
        pub unsafe fn areasOfInterest(&self) -> Option<Id<NSArray<NSString>>>;
    }
);

extern_methods!(
    /// ContactsAdditions
    unsafe impl CLPlacemark {
        #[cfg(feature = "objc2-contacts")]
        #[method_id(@__retain_semantics Other postalAddress)]
        pub unsafe fn postalAddress(&self) -> Option<Id<CNPostalAddress>>;
    }
);