什么setVisibleActivities方法呢? [英] What the setVisibleActivities method does?

查看:518
本文介绍了什么setVisibleActivities方法呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一PlusClient实例的典型初始化从一个Android应用程序访问谷歌Plus是这样的:

The typical initialization of a PlusClient instance for accessing Google Plus from an Android app is something like this:

PlusClient mPlusClient = new PlusClient.Builder(this, this, this)
            .setVisibleActivities("http://schemas.google.com/AddActivity",
            "http://schemas.google.com/BuyActivity")
            .build();

我不明白这一切的方法:

I do not understand at all this method:

<一个href="http://developer.android.com/reference/com/google/android/gms/plus/PlusClient.Builder.html#setVisibleActivities(java.lang.String...)" rel="nofollow">http://developer.android.com/reference/com/google/android/gms/plus/PlusClient.Builder.html#setVisibleActivities(java.lang.String...)

我不知道这些是什么的活动类型,为什么他们在那里,它们是如何被使用的PlusClient,所以我不知道他们的,我应该在我的应用程序使用...

I do not know what are these "activity types", and why they are there, and how are they used by the PlusClient, so I do not know which of them I should use in my app...

推荐答案

最后,我意识到,这是从谷歌I / O 2013

Finally I realized that it's quite detailed at the end of this video from Google I/O 2013

https://www.youtube.com/watch?v=_KBHf1EODuk

从27:00

这篇关于什么setVisibleActivities方法呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆