HWSDKShare

Kind: global class

hwsdkShare.config : Object

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

Kind: instance property of HWSDKShare
Default: {}
Properties

Name Type Description
bg String 背景
shareBtnText String 挑战一下按钮文案
shareBtnBg String 挑战一下按钮颜色
shareBtnImg String 挑战一下按钮图片
banner String 横幅
wxImg String 微信头像
shareText String 分享文案
footerText String 底部文案
footerLink String 底部链接

hwsdkShare.tapEvent : String

点击事件

Kind: instance property of HWSDKShare

HWSDKShare.init(config) ⇒ Object

初始化方法

Kind: static method of HWSDKShare
Returns: Object - hwsdkShare实例

Param Type Description
config Object | Null 配置

Example

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

HWSDKShare.show() ⇒ Object

显示

Kind: static method of HWSDKShare
Returns: Object - hwsdkShare实例
Example

// 分享页的显示
hwsdk.plugins.share.show()

HWSDKShare.hide() ⇒ Object

隐藏

Kind: static method of HWSDKShare
Returns: Object - hwsdkShare实例
Example

// 分享页的隐藏
hwsdk.plugins.share.hide()

HWSDKShare.showFooter() ⇒ Object

显示底部横幅

Kind: static method of HWSDKShare
Returns: Object - hwsdkShare实例
Example

// 底部横幅的显示
hwsdk.plugins.share.showFooter()

HWSDKShare.hideFooter() ⇒ Object

隐藏底部横幅

Kind: static method of HWSDKShare
Returns: Object - hwsdkShare实例
Example

// 底部横幅的隐藏
hwsdk.plugins.share.hideFooter()

results matching ""

    No results matching ""