objc2-class-kit 0.3.2

Bindings to the ClassKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

mod private_NSUserActivityCLSDeepLinks {
    pub trait Sealed {}
}

/// Category "CLSDeepLinks" on [`NSUserActivity`].
#[doc(alias = "CLSDeepLinks")]
pub unsafe trait NSUserActivityCLSDeepLinks:
    ClassType + Sized + private_NSUserActivityCLSDeepLinks::Sealed
{
    extern_methods!(
        /// Returns whether the user activity is a ClassKit deep link.
        #[unsafe(method(isClassKitDeepLink))]
        #[unsafe(method_family = none)]
        unsafe fn isClassKitDeepLink(&self) -> bool;

        /// Returns the context identifier path you should deep link to.
        ///
        /// For example for the context identifier path
        /// `@["swift-programming-book",``"chapter1"],`your app should direct the user to
        /// _chapter1_in
        /// _swift-programming-book._
        #[unsafe(method(contextIdentifierPath))]
        #[unsafe(method_family = none)]
        unsafe fn contextIdentifierPath(&self) -> Option<Retained<NSArray<NSString>>>;
    );
}

impl private_NSUserActivityCLSDeepLinks::Sealed for NSUserActivity {}
unsafe impl NSUserActivityCLSDeepLinks for NSUserActivity {}