objc2_ui_kit/generated/
UITextDragURLPreviews.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9#[cfg(feature = "UIDragPreview")]
11impl UIDragPreview {
12 extern_methods!(
13 #[unsafe(method(previewForURL:))]
14 #[unsafe(method_family = none)]
15 pub unsafe fn previewForURL(url: &NSURL, mtm: MainThreadMarker) -> Retained<Self>;
16
17 #[unsafe(method(previewForURL:title:))]
18 #[unsafe(method_family = none)]
19 pub unsafe fn previewForURL_title(
20 url: &NSURL,
21 title: Option<&NSString>,
22 mtm: MainThreadMarker,
23 ) -> Retained<Self>;
24 );
25}
26
27#[cfg(all(feature = "UITargetedDragPreview", feature = "UITargetedPreview"))]
29impl UITargetedDragPreview {
30 extern_methods!(
31 #[unsafe(method(previewForURL:target:))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn previewForURL_target(
34 url: &NSURL,
35 target: &UIDragPreviewTarget,
36 ) -> Retained<Self>;
37
38 #[unsafe(method(previewForURL:title:target:))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn previewForURL_title_target(
41 url: &NSURL,
42 title: Option<&NSString>,
43 target: &UIDragPreviewTarget,
44 ) -> Retained<Self>;
45 );
46}