AliyunTemplateBuilder
@interface AliyunTemplateBuilder : NSObject
* A class that defines the builder for a template API_AVAILABLE(3.27.0)
-
* Make a template
Declaration
Objective-C
+ (AliyunTemplateBuilder *)build:(NSString *)taskPath editor:(AliyunEditor *)editor;Parameters
taskPathTask path for output, if exists will be removed and recreate
editorAliyunEditor
Return Value
AliyunTemplateBuilder
-
* Make a template
Declaration
Objective-C
+ (AliyunTemplateBuilder *)build:(NSString *)taskPath editorTaskPath:(NSString *)editorTaskPath;Parameters
taskPathTask path for output
editorTaskPathThe task path of AliyunEditor
Return Value
AliyunTemplateBuilder
-
* Get task path
Declaration
Objective-C
- (NSString *)getTaskPath;Return Value
The current task path
-
* Get template
Declaration
Objective-C
- (AliyunTemplate *)getTemplate;Return Value
The current template
-
* Get all the modified content
Declaration
Objective-C
- (NSArray<AliyunTemplateModifyContent *> *)getModifyContentList;Return Value
Array that element’s type is AliyunTemplateModifyContent
-
* Update the template id
Declaration
Objective-C
- (BOOL)updateTemplateId:(NSString *)templateId;Parameters
templateIdThe id of template
Return Value
Yes or no
-
* Update the template title
Declaration
Objective-C
- (BOOL)updateTitle:(NSString *)title;Parameters
titleThe title of template
Return Value
Yes or no
-
* Update the template cover url. Support ‘http’ and local file, copy the file to task path if local.
Declaration
Objective-C
- (BOOL)updateCover:(NSString *)coverUrl;Parameters
coverUrlThe cover url of template
Return Value
Yes or no
-
* Update the template preview video url. Support ‘http’ and local file. Copy the file to task path if local.
Declaration
Objective-C
- (BOOL)updatePreviewVideo:(NSString *)videoUrl;Parameters
videoUrlThe preview video url of template
Return Value
Yes or no
-
* Update the template param
Declaration
Objective-C
- (BOOL)updateParam:(AliyunTemplateModifyContent *)modifyContent;Parameters
modifyContentThe content for modify
Return Value
Yes or no
-
* Save
Declaration
Objective-C
- (BOOL)save;Return Value
Yes or no
AliyunTemplateBuilder Class Reference