AliyunDraftManager
@interface AliyunDraftManager : NSObject
* The manager of local draft
-
* The id of manager
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *identifier; -
* The list of draft
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSArray<AliyunDraft *> *draftList; -
* The callback of manager’s event
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunDraftManagerDelegate> delegate; -
* The Init of draft manager
Declaration
Objective-C
- (instancetype)initWithId:(NSString *)identifier;Parameters
identifier -
* Add the draft
Declaration
Objective-C
- (void)addDraft:(AliyunDraft *)draft;Parameters
draftThe draft need to be add
-
* delete the draft
Declaration
Objective-C
- (AliyunDraft *)deleteDraft:(AliyunDraft *)draft;Parameters
draftThe draft will be delete from manager
-
* copy the draft
Declaration
Objective-C
- (AliyunDraft *)copyDraft:(AliyunDraft *)draft toPath:(NSString *)taskPath withTitle:(NSString *)title;Parameters
draftThe draft will be copy
taskPathThe path of new draft
titleThe title of new draft
-
* Download draft
Declaration
Objective-C
- (void)downloadDraftWithProjectFile:(NSString *)projectFilePath resourceDownloader:(DraftTaskLoader)downloader completion: (void (^)(AliyunDraft *, NSError *))completion;Parameters
projectFilePathThe path of project description file
downloaderThe loader for draft’s resources
completionThe callback of loader after resoruce download finish
AliyunDraftManager Class Reference