objc2_intents/generated/
INCallRecord_Deprecated.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// Deprecated.
10#[cfg(feature = "INCallRecord")]
11impl INCallRecord {
12    extern_methods!(
13        #[cfg(all(
14            feature = "INCallCapability",
15            feature = "INCallRecordType",
16            feature = "INPerson"
17        ))]
18        #[deprecated = "Replaced by -initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:participants:numberOfCalls:isCallerIdBlocked"]
19        #[unsafe(method(initWithIdentifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:))]
20        #[unsafe(method_family = init)]
21        pub unsafe fn initWithIdentifier_dateCreated_caller_callRecordType_callCapability_callDuration_unseen(
22            this: Allocated<Self>,
23            identifier: &NSString,
24            date_created: Option<&NSDate>,
25            caller: Option<&INPerson>,
26            call_record_type: INCallRecordType,
27            call_capability: INCallCapability,
28            call_duration: Option<&NSNumber>,
29            unseen: Option<&NSNumber>,
30        ) -> Retained<Self>;
31
32        #[cfg(all(
33            feature = "INCallCapability",
34            feature = "INCallRecordType",
35            feature = "INPerson"
36        ))]
37        #[deprecated = "Replaced by -initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:participants:numberOfCalls:isCallerIdBlocked"]
38        #[unsafe(method(initWithIdentifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:numberOfCalls:))]
39        #[unsafe(method_family = init)]
40        pub unsafe fn initWithIdentifier_dateCreated_caller_callRecordType_callCapability_callDuration_unseen_numberOfCalls(
41            this: Allocated<Self>,
42            identifier: &NSString,
43            date_created: Option<&NSDate>,
44            caller: Option<&INPerson>,
45            call_record_type: INCallRecordType,
46            call_capability: INCallCapability,
47            call_duration: Option<&NSNumber>,
48            unseen: Option<&NSNumber>,
49            number_of_calls: Option<&NSNumber>,
50        ) -> Retained<Self>;
51
52        #[cfg(feature = "INPerson")]
53        #[deprecated]
54        #[unsafe(method(caller))]
55        #[unsafe(method_family = none)]
56        pub unsafe fn caller(&self) -> Option<Retained<INPerson>>;
57    );
58}