icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Contacts::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Contacts_CNPhoneNumber")]
    pub struct CNPhoneNumber;

    #[cfg(feature = "Contacts_CNPhoneNumber")]
    unsafe impl ClassType for CNPhoneNumber {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Contacts_CNPhoneNumber")]
unsafe impl NSCoding for CNPhoneNumber {}

#[cfg(feature = "Contacts_CNPhoneNumber")]
unsafe impl NSCopying for CNPhoneNumber {}

#[cfg(feature = "Contacts_CNPhoneNumber")]
unsafe impl NSObjectProtocol for CNPhoneNumber {}

#[cfg(feature = "Contacts_CNPhoneNumber")]
unsafe impl NSSecureCoding for CNPhoneNumber {}

extern_methods!(
    #[cfg(feature = "Contacts_CNPhoneNumber")]
    unsafe impl CNPhoneNumber {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other phoneNumberWithStringValue:)]
        pub unsafe fn phoneNumberWithStringValue(string_value: &NSString) -> Option<Id<Self>>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Init initWithStringValue:)]
        pub unsafe fn initWithStringValue(
            this: Allocated<Self>,
            string: &NSString,
        ) -> Option<Id<Self>>;

        #[deprecated = "Use initWithStringValue:"]
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[deprecated = "Use phoneNumberWithStringValue:"]
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other stringValue)]
        pub unsafe fn stringValue(&self) -> Id<NSString>;
    }
);

extern_static!(CNLabelPhoneNumberiPhone: &'static NSString);

extern_static!(CNLabelPhoneNumberAppleWatch: &'static NSString);

extern_static!(CNLabelPhoneNumberMobile: &'static NSString);

extern_static!(CNLabelPhoneNumberMain: &'static NSString);

extern_static!(CNLabelPhoneNumberHomeFax: &'static NSString);

extern_static!(CNLabelPhoneNumberWorkFax: &'static NSString);

extern_static!(CNLabelPhoneNumberOtherFax: &'static NSString);

extern_static!(CNLabelPhoneNumberPager: &'static NSString);