objc2-intents 0.3.2

Bindings to the Intents framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

/// Deprecated.
#[cfg(feature = "INCallRecord")]
impl INCallRecord {
    extern_methods!(
        #[cfg(all(
            feature = "INCallCapability",
            feature = "INCallRecordType",
            feature = "INPerson"
        ))]
        #[deprecated = "Replaced by -initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:participants:numberOfCalls:isCallerIdBlocked"]
        #[unsafe(method(initWithIdentifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithIdentifier_dateCreated_caller_callRecordType_callCapability_callDuration_unseen(
            this: Allocated<Self>,
            identifier: &NSString,
            date_created: Option<&NSDate>,
            caller: Option<&INPerson>,
            call_record_type: INCallRecordType,
            call_capability: INCallCapability,
            call_duration: Option<&NSNumber>,
            unseen: Option<&NSNumber>,
        ) -> Retained<Self>;

        #[cfg(all(
            feature = "INCallCapability",
            feature = "INCallRecordType",
            feature = "INPerson"
        ))]
        #[deprecated = "Replaced by -initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:participants:numberOfCalls:isCallerIdBlocked"]
        #[unsafe(method(initWithIdentifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:numberOfCalls:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithIdentifier_dateCreated_caller_callRecordType_callCapability_callDuration_unseen_numberOfCalls(
            this: Allocated<Self>,
            identifier: &NSString,
            date_created: Option<&NSDate>,
            caller: Option<&INPerson>,
            call_record_type: INCallRecordType,
            call_capability: INCallCapability,
            call_duration: Option<&NSNumber>,
            unseen: Option<&NSNumber>,
            number_of_calls: Option<&NSNumber>,
        ) -> Retained<Self>;

        #[cfg(feature = "INPerson")]
        #[deprecated]
        #[unsafe(method(caller))]
        #[unsafe(method_family = none)]
        pub unsafe fn caller(&self) -> Option<Retained<INPerson>>;
    );
}