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
taskPath
Task path for output, if exists will be removed and recreate
editor
AliyunEditor
Return Value
AliyunTemplateBuilder
-
* Make a template
Declaration
Objective-C
+ (AliyunTemplateBuilder *)build:(NSString *)taskPath editorTaskPath:(NSString *)editorTaskPath;
Parameters
taskPath
Task path for output
editorTaskPath
The 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
templateId
The id of template
Return Value
Yes or no
-
* Update the template title
Declaration
Objective-C
- (BOOL)updateTitle:(NSString *)title;
Parameters
title
The 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
coverUrl
The 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
videoUrl
The preview video url of template
Return Value
Yes or no
-
* Update the template param
Declaration
Objective-C
- (BOOL)updateParam:(AliyunTemplateModifyContent *)modifyContent;
Parameters
modifyContent
The content for modify
Return Value
Yes or no
-
* Save
Declaration
Objective-C
- (BOOL)save;
Return Value
Yes or no