java.lang.Object | |
↳ | com.google.android.gms.plus.PlusClient.Builder |
Builder to configure a PlusClient
for communicating with the Google+ APIs.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder to help construct the
PlusClient object. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builds a new
PlusClient object for communicating with the Google+ APIs. | |||||||||||
Removes all OAuth 2.0 scopes requested by your app.
| |||||||||||
Specify an account name on the device that should be used.
| |||||||||||
Specify which user's app activity types can be written to Google.
| |||||||||||
Specify the OAuth 2.0 scopes requested by your app.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Builder to help construct the PlusClient
object.
context | The context to use for the connection. |
---|---|
connectionCallbacks | The listener where the results of the
asynchronous connect() call are delivered. |
connectionFailedListener | The listener which will be notified if the connection attempt fails. |
Builds a new PlusClient
object for communicating with the Google+ APIs.
PlusClient
object.
Specify an account name on the device that should be used. If this is never called, the client will use the current default account for Google Play services for this application.
accountName | The account name on the device that should be used by
PlusClient .
|
---|
Specify which user's app activity types can be written to Google.
This must be used with the PLUS_LOGIN
OAuth 2.0 scope.
See Types of app activity for the full list of valid app activity types. Example usage:
plusClientBuilder.setActions( "http://schemas.google.com/AddActivity", "http://schemas.google.com/BuyActivity");
actions | The user's app activity types that can be written to Google. |
---|