本帖最后由 刘芳丽 于 2020-12-4 18:20 编辑
更新说明 1、 Facebook、Twitter、LinkedIn等平台新增系统分享接口 2、授权页面新增页面加载进度条 3、修复部分已知bug
详细说明: 1、Dropbox,EasyChat,Facebook,Flickr,Instapaper,Kakao,LinkedIn,MingDao,Pinterest,Pocket,Tumblr,VKontakte,YouDaoNote支持系统分享(都需要安装客户端菜可以分享) 初始化方法不变,每个平台系统分享可以支持分享的类型可以参考demo例子,分享接口可以换成如下: - [ShareSDK shareByActivityViewController:SSDKPlatformTypeDropbox parameters:shareParams onStateChanged:^(SSDKResponseState state, NSDictionary *userData, SSDKContentEntity *contentEntity, NSError *error) {
- if (state == SSDKResponseStateSuccess)
- {
- NSLog(@"分享成功");
- }
- if (state == SSDKResponseStateFail)
- {
- NSLog(@"%@",error.description);
- }
- if (state == SSDKResponseStateCancel)
- {
- NSLog(@"取消");
- }
- }];
复制代码
Dropbox,facebook,Flickr, Pinterest,明道,Tumblr,Linkedin,VKontakte , Kakao, YouDaoNote, Pocket系统分享,分享之后,分享界面消失,返回分享成功回调; Instapaper,Linkedin,VKontakte 平台未登录时,提示需要登录后返回分享成功; EasyChat分享成功或者取消,completed都是nil,无法判断是否成功,以取消分享返回;
注意:有些平台需要多增加白名单的配置,VKontakte:vk; Pocket:pocket;YouDaoNote:youdaonote;Instapaper:instapaper;Linkedin:linkedin;Flickr: flickr;Pinterest:pinterest;明道:mingdao;Tumblr:tumblr;Dropbox:db-auth; 如下图:
,
|