What does the setVisibleActivities method do?

A typical initialization of a PlusClient instance for accessing Google Plus from an Android application looks something like this:

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

I don’t understand this method at all:

http://developer.android.com/reference/com/google/android/gms/plus/PlusClient.Builder.html#setVisibleActivities (java.lang.String ...)

I don’t know what the types of “activity” are and why they are, and how PlusClient uses them, so I don’t know which one I should use in my application ...

+4
source share
2 answers

Application actions are the ways in which your application can save and share its actions with users in their Google+ account. According to the documentation that you link, there are a number of specific activities that correspond to the different types of actions that your users can use in your application.

+2
source

Finally, I realized that this is pretty detailed at the end of this video from Google I / O 2013

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

From 27:00

+2
source

Source: https://habr.com/ru/post/1483223/


All Articles