BDMaterialUploader class

Inheritance

Constructors

BDMaterialUploader()

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
inherited
$destroy() → void
inherited
$init(List args) → void
inherited
close() → Future
{zh} @brief 终止上传,并释放底层上传对象,释放后不能够继续进行上传。
inherited
initParams(UploaderOptions options) → FutureOr<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAliveMaxFailTime(int aliveMaxFailTime) → FutureOr<void>
setCategory(string category) → Future
{zh} @brief 素材分类。当上传类型为素材时,可以指定素材的分类信息,必填。可选值为 video、audio、image、dynamic_img、subtitle、font。分别对应:视频、音频、图片、动图、字幕、字体。
inherited
setDescription(string description) → Future
{zh} @brief 设置描述 @param description 描述
inherited
setDiskResumeOption(int enableResume) → FutureOr<void>
setEnableAsyncFetchMeta(bool asyncFetchMeta) → FutureOr<void>
setEnableBigFileUpload(bool bigFileUpload) → FutureOr<void>
setFileExtension(string fileExtension) → Future
{zh} @brief 设置后缀,必须设置,需要以 . 开头,如 .mp4、.mp3 等。
inherited
setFileName(string fileName) → Future
{zh} @brief 设置文件名称
inherited
setFilePrefix(string filePrefix) → Future
{zh} @brief 设置前缀,可选设置,需要以 / 结尾
inherited
setFileRetryCount(int fileRetryCount) → FutureOr<void>
setFileType(string fileType) → Future
{zh} @brief 设置文件类型,必填。可选值为 media、image、object。
inherited
setFlushMode(int flushMode) → FutureOr<void>
setFormat(string format) → Future
{zh} @brief 格式。若传入 Format 的话,以您传入参数为准,否则以系统识别出的 Format 为准。若遇到特殊文件无法识别,Format 可能为空。 @param format 格式
inherited
setHost(string value) → Future
{zh} @brief 设置域名
inherited
setListener(MaterialUploaderInfoCallback listener) → FutureOr<void>
setMaxFailTime(int maxFailTime) → FutureOr<void>
setPoster(double poster) → FutureOr<void>
setRegion(String region) → FutureOr<void>
setRWTimeout(int rwTimeout) → FutureOr<void>
setSDKConfigDirForAndroid(String dir) → FutureOr<void>
setServerParameter(String serverParameter) → FutureOr<void>
setSliceRetryCount(int sliceRetryCount) → FutureOr<void>
setSliceSize(int sliceSize) → FutureOr<void>
setSocketNum(int socketNum) → FutureOr<void>
setTags(string tags) → Future
{zh} @brief 设置标签,多个标签可用逗号隔开。 @param tags 标签
inherited
setTcpOpenTimeOutMs(int tcpOpenTimeOutMs) → FutureOr<void>
setTemplateId(string templateId) → Future
{zh} @brief 传入工作流 ID,从而触发媒体处理任务
inherited
setTitle(string title) → Future
{zh} @brief 设置标题 @param title 标题
inherited
setTraceID(String traceID) → FutureOr<void>
setTranTimeout(int tranTimeout) → FutureOr<void>
start() → Future
{zh} @brief 开始上传 @note SDK 内部在执行此函数的时候,会新建线程,不会阻塞。
inherited
stop() → Future
{zh} @brief 暂停上传
inherited
toString() → String
A string representation of this object.
inherited
updateInstance(dynamic instance) → void
inherited

Operators

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