BDMaterialUploader class

{zh} @detail api @brief 素材上传类

Inheritance
  • Object
  • PackClass
  • BDMaterialUploader
Implementers

Constructors

BDMaterialUploader.new()

Properties

$instance → dynamic
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$createInstance(List args) → dynamic
Factory method for creating instances
override
$destroy() → void
inherited
$init(List args) → void
inherited
close() Future
{zh} @brief 终止上传,并释放底层上传对象,释放后不能够继续进行上传。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCategory(string category) Future
{zh} @brief 素材分类。当上传类型为素材时,可以指定素材的分类信息,必填。可选值为 video、audio、image、dynamic_img、subtitle、font。分别对应:视频、音频、图片、动图、字幕、字体。
setDescription(string description) Future
{zh} @brief 设置描述 @param description 描述
setFileExtension(string fileExtension) Future
{zh} @brief 设置后缀,必须设置,需要以 . 开头,如 .mp4、.mp3 等。
setFileName(string fileName) Future
{zh} @brief 设置文件名称
setFilePrefix(string filePrefix) Future
{zh} @brief 设置前缀,可选设置,需要以 / 结尾
setFileType(string fileType) Future
{zh} @brief 设置文件类型,必填。可选值为 media、image、object。
setFormat(string format) Future
{zh} @brief 格式。若传入 Format 的话,以您传入参数为准,否则以系统识别出的 Format 为准。若遇到特殊文件无法识别,Format 可能为空。 @param format 格式
setHost(string value) Future
{zh} @brief 设置域名
setTags(string tags) Future
{zh} @brief 设置标签,多个标签可用逗号隔开。 @param tags 标签
setTemplateId(string templateId) Future
{zh} @brief 传入工作流 ID,从而触发媒体处理任务
setTitle(string title) Future
{zh} @brief 设置标题 @param title 标题
start() Future
{zh} @brief 开始上传 @note SDK 内部在执行此函数的时候,会新建线程,不会阻塞。
stop() Future
{zh} @brief 暂停上传
toString() String
A string representation of this object.
inherited
updateInstance(dynamic instance) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited