#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UITextDragURLPreviews.h // UIKit // // Copyright © 2017-2018 Apple Inc. All rights reserved. // #import #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) /* Methods to create previews for dragging a URL. * The previews show a textual representation of the URL, and may not * contain the full URL string. * Should be used only for Internet protocol based URLs, not file URLs. */ @interface UIDragPreview (URLPreviews) + (instancetype)previewForURL:(NSURL *)url API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos); /* If the title is nil or empty, this is the same as `previewForURL:`. */ + (instancetype)previewForURL:(NSURL *)url title:(NSString * _Nullable)title API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos); @end @interface UITargetedDragPreview (URLPreviews) + (instancetype)previewForURL:(NSURL *)url target:(UIDragPreviewTarget*)target API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos); /* If the title is nil or empty, this is the same as `previewForURL:target:`. */ + (instancetype)previewForURL:(NSURL *)url title:(NSString * _Nullable)title target:(UIDragPreviewTarget*)target API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos); @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif