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