objc2_shared_with_you_core/generated/
SWPerson.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
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/sharedwithyoucore/swperson?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct SWPerson;
14);
15
16extern_conformance!(
17    unsafe impl NSCoding for SWPerson {}
18);
19
20extern_conformance!(
21    unsafe impl NSObjectProtocol for SWPerson {}
22);
23
24extern_conformance!(
25    unsafe impl NSSecureCoding for SWPerson {}
26);
27
28impl SWPerson {
29    extern_methods!(
30        #[cfg(feature = "SWPersonIdentity")]
31        /// An initializer
32        ///
33        /// Parameter `handle`: The phone number or email address for this person.
34        ///
35        /// Parameter `identity`: The identity of this person.
36        ///
37        /// Parameter `displayName`: The name of this person.
38        ///
39        /// Parameter `thumbnailImageData`: Optional thumbnail image data for this person. If nil, this will be inferred by the system.
40        #[unsafe(method(initWithHandle:identity:displayName:thumbnailImageData:))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn initWithHandle_identity_displayName_thumbnailImageData(
43            this: Allocated<Self>,
44            handle: Option<&NSString>,
45            identity: Option<&SWPersonIdentity>,
46            display_name: &NSString,
47            thumbnail_image_data: Option<&NSData>,
48        ) -> Retained<Self>;
49
50        #[unsafe(method(init))]
51        #[unsafe(method_family = init)]
52        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
53
54        #[unsafe(method(new))]
55        #[unsafe(method_family = new)]
56        pub unsafe fn new() -> Retained<Self>;
57    );
58}