BackgroundImageLoadOptions interface 参考

  • HarmonyOS

更新时间不可用

详细描述

适用版本:@shengwang/whiteboard 0.2.11。

WhiteboardOptions.backgroundImageLoadOptions 的加载重试和超时配置。

可从 @shengwang/whiteboard 直接导入 BackgroundImageLoadOptions。仅用于类型声明,不能作为构造函数调用 new。

类型结构(源码声明)

下方源码文件的 export 声明不等同于 SDK 包入口导出;业务导入方式以上方说明为准。

Text
export interface BackgroundImageLoadOptions
maxRetriesmaxRetries?: number
timeoutMstimeoutMs?: number
retryIntervalMsretryIntervalMs?: number
表格内容超出当前宽度,可横向滚动查看更多列。

变量说明

maxRetries

Text
maxRetries?: number

背景图片重试次数:-1 表示无限重试,或整数 0~10;默认 3。

timeoutMs

Text
timeoutMs?: number

背景图片单次加载超时,1000~120000 毫秒;默认 15000。

retryIntervalMs

Text
retryIntervalMs?: number

背景图片重试间隔,0~30000 毫秒;默认 1000。

这个页面有帮助吗?