Skip to main content

objc2_class_kit/generated/
NSUserActivity_CLSDeepLinks.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8mod private_NSUserActivityCLSDeepLinks {
9    pub trait Sealed {}
10}
11
12/// Category "CLSDeepLinks" on [`NSUserActivity`].
13#[doc(alias = "CLSDeepLinks")]
14pub unsafe trait NSUserActivityCLSDeepLinks:
15    ClassType + Sized + private_NSUserActivityCLSDeepLinks::Sealed
16{
17    extern_methods!(
18        /// Returns whether the user activity is a ClassKit deep link.
19        #[unsafe(method(isClassKitDeepLink))]
20        #[unsafe(method_family = none)]
21        unsafe fn isClassKitDeepLink(&self) -> bool;
22
23        /// Returns the context identifier path you should deep link to.
24        ///
25        /// For example for the context identifier path
26        /// `@["swift-programming-book",``"chapter1"],`your app should direct the user to
27        /// _chapter1_in
28        /// _swift-programming-book._
29        #[unsafe(method(contextIdentifierPath))]
30        #[unsafe(method_family = none)]
31        unsafe fn contextIdentifierPath(&self) -> Option<Retained<NSArray<NSString>>>;
32    );
33}
34
35impl private_NSUserActivityCLSDeepLinks::Sealed for NSUserActivity {}
36unsafe impl NSUserActivityCLSDeepLinks for NSUserActivity {}