objc2_shared_with_you/generated/
SWHighlight.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    /// A model object representing a universal link shared by any number of contacts, in any number of conversations. The identities of the contacts are not exposed to the application.
11    ///
12    /// The system tracks universal links shared with the current user, and decides which links to elevate for consumption in an app. When the system deems a link to be useful, it surfaces that link to the hosting app in the form of an `SWHighlight` object. Only universal links can be surfaced in this way.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/sharedwithyou/swhighlight?language=objc)
15    #[unsafe(super(NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    pub struct SWHighlight;
18);
19
20extern_conformance!(
21    unsafe impl NSCoding for SWHighlight {}
22);
23
24extern_conformance!(
25    unsafe impl NSCopying for SWHighlight {}
26);
27
28unsafe impl CopyingHelper for SWHighlight {
29    type Result = Self;
30}
31
32extern_conformance!(
33    unsafe impl NSObjectProtocol for SWHighlight {}
34);
35
36extern_conformance!(
37    unsafe impl NSSecureCoding for SWHighlight {}
38);
39
40impl SWHighlight {
41    extern_methods!(
42        /// The unique identifier for this highlight
43        #[unsafe(method(identifier))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn identifier(&self) -> Retained<AnyObject /* NSSecureCoding+ NSCopying */>;
46
47        /// The surfaced content URL
48        #[unsafe(method(URL))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn URL(&self) -> Retained<NSURL>;
51
52        #[unsafe(method(init))]
53        #[unsafe(method_family = init)]
54        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
55
56        #[unsafe(method(new))]
57        #[unsafe(method_family = new)]
58        pub unsafe fn new() -> Retained<Self>;
59    );
60}