Umshare class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
auth(UmShareMedia shareMedia)
→ Future
-
登录
@shareMedia 分享类型:0: QQ, 1: 新浪微博, 4: QQ空间, 28: 支付宝, 32: 钉钉
-
checkInstall(UmShareMedia shareMedia)
→ Future
-
检查应用是否安装
@shareMedia 分享类型:0: QQ, 1: 新浪微博, 4: QQ空间, 28: 支付宝, 32: 钉钉
-
init(String appKey, [String channel = "umengshare", bool logEnabled = false])
→ Future
-
初始化um sdk
@appKey 友盟应用 appKey
@channel 分享渠道
@logEnabled 是否开启日志
在调用所有方法前必须调用
-
platformConfig(List<UmInitBaseModel> list)
→ Future
-
初始化各平台 app sdk
-
share(UmShareBaseModel model)
→ Future
-
分享
@title 分享标题
@text 分享描述
@img 分享图片
@fileImg 本地文件图片路径
@webUrl 分享网页链接
@videoUrl 分享视频链接
@musicUrl 分享音频链接
@shareMedia 分享类型:0: QQ, 1: 新浪微博, 4: QQ空间, 28: 支付宝, 32: 钉钉