-
Notifications
You must be signed in to change notification settings - Fork 6
/
MVAsset.h
25 lines (20 loc) · 842 Bytes
/
MVAsset.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import <Foundation/Foundation.h>
@class MVAssetsManager;
@interface MVAsset : NSObject
@property (strong, readonly) NSURL *localURL;
@property (strong, readwrite) NSURL *remoteURL;
@property (readonly, getter = isExisting) BOOL existing;
@property (readonly) float downloadPercentage;
@property (readonly) float uploadPercentage;
@property (readonly) BOOL uploadFinished;
@property (readonly, nonatomic) BOOL error;
@property (strong, readwrite, nonatomic) MVAsset *originalAsset;
@property (strong, readonly, nonatomic) NSURL *fileUploadRemoteURL;
- (id)initWithRemoteURL:(NSURL*)remoteURL
assetsManager:(MVAssetsManager*)assetsManager;
- (id)initWithRemoteURL:(NSURL*)remoteURL
assetsManager:(MVAssetsManager*)assetsManager
withMaxSize:(CGSize)maxSize;
- (void)retryDownload;
- (void)retryUpload;
@end