objc2_cloud_kit/generated/
NSItemProvider_CKSharingSupport.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[cfg(all(feature = "CKRecord", feature = "CKShare", feature = "block2"))]
12pub type CKSharePreparationCompletionHandler =
13 *mut block2::DynBlock<dyn Fn(*mut CKShare, *mut NSError)>;
14
15#[cfg(all(feature = "CKRecord", feature = "CKShare", feature = "block2"))]
17pub type CKSharePreparationHandler =
18 *mut block2::DynBlock<dyn Fn(CKSharePreparationCompletionHandler)>;
19
20mod private_NSItemProviderCKSharingSupport {
21 pub trait Sealed {}
22}
23
24#[doc(alias = "CKSharingSupport")]
26pub unsafe trait NSItemProviderCKSharingSupport:
27 ClassType + Sized + private_NSItemProviderCKSharingSupport::Sealed
28{
29 extern_methods!(
30 #[cfg(all(
31 feature = "CKAllowedSharingOptions",
32 feature = "CKContainer",
33 feature = "CKRecord",
34 feature = "CKShare",
35 feature = "block2"
36 ))]
37 #[unsafe(method(registerCKShareWithContainer:allowedSharingOptions:preparationHandler:))]
53 #[unsafe(method_family = none)]
54 unsafe fn registerCKShareWithContainer_allowedSharingOptions_preparationHandler(
55 &self,
56 container: &CKContainer,
57 allowed_options: &CKAllowedSharingOptions,
58 preparation_handler: CKSharePreparationHandler,
59 );
60
61 #[cfg(all(
62 feature = "CKAllowedSharingOptions",
63 feature = "CKContainer",
64 feature = "CKRecord",
65 feature = "CKShare"
66 ))]
67 #[unsafe(method(registerCKShare:container:allowedSharingOptions:))]
71 #[unsafe(method_family = none)]
72 unsafe fn registerCKShare_container_allowedSharingOptions(
73 &self,
74 share: &CKShare,
75 container: &CKContainer,
76 allowed_options: &CKAllowedSharingOptions,
77 );
78 );
79}
80
81impl private_NSItemProviderCKSharingSupport::Sealed for NSItemProvider {}
82unsafe impl NSItemProviderCKSharingSupport for NSItemProvider {}