/** * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: GPL-3.0-or-later */ #import #import #import "ShareItem.h" NS_ASSUME_NONNULL_BEGIN @class ShareItemController; @protocol ShareItemControllerDelegate - (void)shareItemControllerItemsChanged:(ShareItemController *)shareItemController; @end @interface ShareItemController : NSObject @property (nonatomic, weak) id delegate; @property (strong, nonatomic) NSArray *shareItems; - (void)addItemWithURL:(NSURL *)fileURL; - (void)addItemWithURLAndName:(NSURL *)fileURL withName:(NSString *)fileName; - (void)addItemWithImage:(UIImage *)image; - (void)addItemWithImageAndName:(UIImage *)image withName:(NSString *)imageName; - (void)addItemWithContactData:(NSData *)data; - (void)addItemWithContactDataAndName:(NSData *)data withName:(NSString *)imageName; - (void)updateItem:(ShareItem *)item withImage:(UIImage *)image; - (void)updateItem:(ShareItem *)item withURL:(NSURL *)fileURL; - (void)removeItem:(ShareItem *)item; - (void)removeItems:(NSArray *)items; - (void)removeAllItems; - (UIImage * _Nullable)getImageFromItem:(ShareItem *)item; @end NS_ASSUME_NONNULL_END