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::CallKit::*;
use crate::Foundation::*;

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

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

#[cfg(feature = "CallKit_CXProviderConfiguration")]
unsafe impl NSCopying for CXProviderConfiguration {}

#[cfg(feature = "CallKit_CXProviderConfiguration")]
unsafe impl NSObjectProtocol for CXProviderConfiguration {}

extern_methods!(
    #[cfg(feature = "CallKit_CXProviderConfiguration")]
    unsafe impl CXProviderConfiguration {
        #[cfg(feature = "Foundation_NSString")]
        #[deprecated = "No longer supported"]
        #[method_id(@__retain_semantics Other localizedName)]
        pub unsafe fn localizedName(&self) -> Option<Id<NSString>>;

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

        #[cfg(feature = "Foundation_NSString")]
        #[method(setRingtoneSound:)]
        pub unsafe fn setRingtoneSound(&self, ringtone_sound: Option<&NSString>);

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

        #[cfg(feature = "Foundation_NSData")]
        #[method(setIconTemplateImageData:)]
        pub unsafe fn setIconTemplateImageData(&self, icon_template_image_data: Option<&NSData>);

        #[method(maximumCallGroups)]
        pub unsafe fn maximumCallGroups(&self) -> NSUInteger;

        #[method(setMaximumCallGroups:)]
        pub unsafe fn setMaximumCallGroups(&self, maximum_call_groups: NSUInteger);

        #[method(maximumCallsPerCallGroup)]
        pub unsafe fn maximumCallsPerCallGroup(&self) -> NSUInteger;

        #[method(setMaximumCallsPerCallGroup:)]
        pub unsafe fn setMaximumCallsPerCallGroup(&self, maximum_calls_per_call_group: NSUInteger);

        #[method(includesCallsInRecents)]
        pub unsafe fn includesCallsInRecents(&self) -> bool;

        #[method(setIncludesCallsInRecents:)]
        pub unsafe fn setIncludesCallsInRecents(&self, includes_calls_in_recents: bool);

        #[method(supportsVideo)]
        pub unsafe fn supportsVideo(&self) -> bool;

        #[method(setSupportsVideo:)]
        pub unsafe fn setSupportsVideo(&self, supports_video: bool);

        #[cfg(all(feature = "Foundation_NSNumber", feature = "Foundation_NSSet"))]
        #[method_id(@__retain_semantics Other supportedHandleTypes)]
        pub unsafe fn supportedHandleTypes(&self) -> Id<NSSet<NSNumber>>;

        #[cfg(all(feature = "Foundation_NSNumber", feature = "Foundation_NSSet"))]
        #[method(setSupportedHandleTypes:)]
        pub unsafe fn setSupportedHandleTypes(&self, supported_handle_types: &NSSet<NSNumber>);

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

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

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "CallKit_CXProviderConfiguration")]
    unsafe impl CXProviderConfiguration {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);