Google+分享iOS照片并检查它是否为“公开”帖子(Google+ Share photo by iOS and Check if it was a “public” post)

编程入门 行业动态 更新时间:2024-10-23 21:27:29
Google+分享iOS照片并检查它是否为“公开”帖子(Google+ Share photo by iOS and Check if it was a “public” post)

我有一个分享照片和预填充文本的应用程序

[[GPPShare sharedInstance] nativeShareDialog]

是否可以检查用户如何共享图像? 作为公众或朋友或其他。 我发现的唯一返回方法是:

- (void)finishedSharingWithError:(NSError *)error { NSString *text; if (!error) { text = @"Success"; } else if (error.code == kGPPErrorShareboxCanceled) { text = @"Canceled"; } else { text = [NSString stringWithFormat:@"Error (%@)", [error localizedDescription]]; } NSLog(@"Status: %@", text); }

但它只返回成功/不成功和相对错误。 可以检查用户选择的共享权限吗?

I have an app that share photo and prefilled text with

[[GPPShare sharedInstance] nativeShareDialog]

Is it possible to check how the user had shared the image? As public or friends or something else. The only return method that I have found is this :

- (void)finishedSharingWithError:(NSError *)error { NSString *text; if (!error) { text = @"Success"; } else if (error.code == kGPPErrorShareboxCanceled) { text = @"Canceled"; } else { text = [NSString stringWithFormat:@"Error (%@)", [error localizedDescription]]; } NSLog(@"Status: %@", text); }

But it return only success/not success and relative error. It is possible to check the sharing permission that the user had select?

最满意答案

您最好的选择是在创建帖子后不久为用户调用activities.list ,如果发现帖子是公开的。

Your best option is going to be calling activities.list for the user shortly after the post is created and if the post is found it was public.

更多推荐

本文发布于:2023-07-28 01:13:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1298259.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:照片   帖子   Google   iOS   Share

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!