Plus.PlusOptions.Builder

public static final class Plus.PlusOptions.Builder extends Object

Plus builder.

Public Constructor Summary

Public Method Summary

Plus.PlusOptions.Builder
addActivityTypes(String... activityTypes)
Specify which user's app activity types can be written to Google+.
Plus.PlusOptions
Plus.PlusOptions.Builder
setServerClientId(String clientId)
Specify the optional 3rd party server client ID for offline auth.

Inherited Method Summary

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(
         "//schemas.google.com/AddActivity",
         "//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.