AliyunDraft
@interface AliyunDraft : NSObject
* The local draft
-
* The id of project
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *projectId; -
* The title of draft
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *title; -
* The create time of draft
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *createTime; -
* The modified time of draft
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *modifiedTime; -
* The duration of project
Declaration
Objective-C
@property (nonatomic, readonly) NSTimeInterval duration; -
* The size of project
Declaration
Objective-C
@property (nonatomic, readonly) size_t size; -
* The path of cover image
Declaration
Objective-C
@property (nonatomic, strong, readonly) AEPSource *cover; -
* The source of Template, generated by template editor
Declaration
Objective-C
@property (nonatomic, strong, readonly) AEPSource *templateSource; -
* Change the project id
Declaration
Objective-C
- (void)changeProjectId:(NSString *)projectId;Parameters
projectIdThe id of project
-
* rename the title of draft
Declaration
Objective-C
- (void)renameTitle:(NSString *)title;Parameters
titlethe new title of draft
-
* Update cover image, if nil will auto capture first frame image as cover
Declaration
Objective-C
- (void)updateCover:(UIImage *)coverImage;
-
* Upload draft
Declaration
Objective-C
- (void)uploadWithResourceUploader:(DraftTaskLoader)resourceUploader projectUploader: (void (^)(AliyunDraftProjectUploadTask *))projectUploader completion:(void (^)(NSError *))completion;Parameters
resourceUploaderThe uploader of resource
projectUploaderThe uploader of project
completionThe callback of upload finish
-
Undocumented
Declaration
Objective-C
- (void) load:(DraftTaskLoader)loader completion:(LocalDraftLoadCallback)completion;
AliyunDraft Class Reference