AbstractPasteboard.h [plain text]
#import <Foundation/Foundation.h>
#if TARGET_OS_IPHONE
NS_ASSUME_NONNULL_BEGIN
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
@class WebItemProviderRegistrationInfoList;
#endif
@protocol AbstractPasteboard <NSObject>
@required
@property (readonly, nonatomic) NSInteger numberOfItems;
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
@property (nonatomic, copy, nullable) NSArray<__kindof NSItemProvider *> *itemProviders;
#endif
- (NSArray<NSString *> *)pasteboardTypes;
- (NSData *)dataForPasteboardType:(NSString *)pasteboardType;
- (NSArray *)dataForPasteboardType:(NSString *)pasteboardType inItemSet:(NSIndexSet *)itemSet;
- (NSArray *)valuesForPasteboardType:(NSString *)pasteboardType inItemSet:(NSIndexSet *)itemSet;
- (NSInteger)changeCount;
@optional
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
- (void)stageRegistrationList:(nullable WebItemProviderRegistrationInfoList *)info;
- (nullable WebItemProviderRegistrationInfoList *)takeRegistrationList;
#endif
- (void)setItems:(NSArray<NSDictionary *> *)items;
- (NSArray<NSString *> *)pasteboardTypesByFidelityForItemAtIndex:(NSUInteger)index;
@property (readonly, nonatomic) NSInteger numberOfFiles;
@property (readonly, nonatomic) NSArray<NSURL *> *allDroppedFileURLs;
- (NSArray<NSURL *> *)fileUploadURLsAtIndex:(NSUInteger)index fileTypes:(NSArray<NSString *> *_Nullable *_Nonnull)outFileTypes;
- (void)updateSupportedTypeIdentifiers:(NSArray<NSString *> *)types;
@end
NS_ASSUME_NONNULL_END
#endif // TARGET_OS_IPHONE