Hide

Plus.PlusOptions.Builder

public static final class Plus.PlusOptions.Builder extends Object
java.lang.Object
   ↳ com.google.android.gms.plus.Plus.PlusOptions.Builder

Public Constructors

public Plus.PlusOptions.Builder ()

Public Methods

public Plus.PlusOptions.Builder addActivityTypes (String... activityTypes)

Specify which user's app activity types can be written to Google+. This must be used with the SCOPE_PLUS_LOGIN OAuth 2.0 scope.

See Types of app activity for the full list of valid app activity types. Example usage:

 googleApiClientBuilder.addPlusActivityType(
         "http://schemas.google.com/AddActivity",
         "http://schemas.google.com/BuyActivity");
 

Parameters
activityTypes The user's app activity types that can be written to Google.

public Plus.PlusOptions build ()

public Plus.PlusOptions.Builder setServerClientId (String clientId)

Specify the optional 3rd party server client ID for offline auth.