objc2_intents/generated/
INPerson_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 = "INPerson")]
11impl INPerson {
12    extern_methods!(
13        #[deprecated = "Use personHandle instead"]
14        #[unsafe(method(handle))]
15        #[unsafe(method_family = none)]
16        pub unsafe fn handle(&self) -> Option<Retained<NSString>>;
17
18        #[deprecated = "Use the designated initializer instead"]
19        #[unsafe(method(initWithHandle:nameComponents:contactIdentifier:))]
20        #[unsafe(method_family = init)]
21        pub unsafe fn initWithHandle_nameComponents_contactIdentifier(
22            this: Allocated<Self>,
23            handle: &NSString,
24            name_components: &NSPersonNameComponents,
25            contact_identifier: Option<&NSString>,
26        ) -> Retained<Self>;
27
28        #[deprecated = "Use the designated initializer instead"]
29        #[unsafe(method(initWithHandle:displayName:contactIdentifier:))]
30        #[unsafe(method_family = init)]
31        pub unsafe fn initWithHandle_displayName_contactIdentifier(
32            this: Allocated<Self>,
33            handle: &NSString,
34            display_name: Option<&NSString>,
35            contact_identifier: Option<&NSString>,
36        ) -> Retained<Self>;
37
38        #[cfg(feature = "INImage")]
39        #[deprecated = "Use the designated initializer instead"]
40        #[unsafe(method(initWithHandle:nameComponents:displayName:image:contactIdentifier:))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn initWithHandle_nameComponents_displayName_image_contactIdentifier(
43            this: Allocated<Self>,
44            handle: &NSString,
45            name_components: Option<&NSPersonNameComponents>,
46            display_name: Option<&NSString>,
47            image: Option<&INImage>,
48            contact_identifier: Option<&NSString>,
49        ) -> Retained<Self>;
50    );
51}