ShareItem.h 725 B

12345678910111213141516171819202122
  1. /**
  2. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. #import <Foundation/Foundation.h>
  6. #import <UIKit/UIKit.h>
  7. @interface ShareItem : NSObject
  8. @property (nonatomic, strong) NSURL *fileURL;
  9. @property (nonatomic, strong) NSString *filePath;
  10. @property (nonatomic, strong) NSString *fileName;
  11. @property (nonatomic, strong) UIImage *placeholderImage;
  12. @property (nonatomic, assign) CGFloat uploadProgress;
  13. @property (nonatomic, assign) BOOL isImage;
  14. @property (nonatomic, strong) NSString *caption;
  15. + (instancetype)initWithURL:(NSURL *)fileURL withName:(NSString *)fileName withPlaceholderImage:(UIImage *)placeholderImage isImage:(BOOL)isImage;
  16. @end