HWSDKLoading

Kind: global class

hwsdkLoading.config : Object

配置表,活动运行需要的数据的集合

Kind: instance property of HWSDKLoading
Default: {}
Properties

Name Type Description
bg String 背景
banner String 横幅
progressBarColor String 进度条颜色
progressBarBg String 进度条背景颜色
progress Number 进度

HWSDKLoading.init(config) ⇒ Object

初始化方法

Kind: static method of HWSDKLoading
Returns: Object - hwsdkLoading实例

Param Type Description
config Object | Null 配置

Example

// 初始化加载页
// 方法1:
hwsdk.plugins.loading.init()
// 方法2:
hwsdk.plugins.loading.init({bg: 'xxx.png'})     // bg为配置表参数之一

HWSDKLoading.show() ⇒ Object

显示

Kind: static method of HWSDKLoading
Returns: Object - hwsdkLoading实例
Example

// 加载页的显示
hwsdk.plugins.loading.show()

HWSDKLoading.hide() ⇒ Object

隐藏

Kind: static method of HWSDKLoading
Returns: Object - hwsdkLoading实例
Example

// 加载页的隐藏
hwsdk.plugins.loading.hide()

results matching ""

    No results matching ""