ShareUtils class

Constructors

ShareUtils()
factory

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

auth({required SharePlatform platform, required dynamic authCall(SharePlatform platform, AuthResultType resultType, Map<String, dynamic> authMap)}) → void
授权 platform 平台类型 authCall 授权回调
init({required String appKey, required String appSecret}) → void
初始化sdk,在调用share sdk其它方法前初始化 ios:info.plist中配置
isClientValid({required SharePlatform platform}) Future<bool?>
true是有客户端,false是未安装客户端
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerPlatform({required SharePlatform platform, required String appId, required String appSecret, String? link}) → void
注册平台 platform 平台类型 appId 对应平台appId appSecret 对应平台appSecret link UniversalLink回调链接
share({required String appId, required SharePlatform platform, required ShareInfo shareInfo, required dynamic shareCall(SharePlatform platform, ShareResultType resultType)}) → void
分享 platform 平台类型 shareInfo 分享数据
submitPolicyGrantResult(bool isGranted) → void
提交是否同意隐私政策 调用时机自定义,在用户同意隐私政策之后调用即可 isGranted 用户是否同意隐私协议
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ShareUtils
no setter