Public Constructor Summary
Public Method Summary
Inherited Method Summary
public Builder ()
public SaveAccountLinkingTokenRequest build ()
public SaveAccountLinkingTokenRequest.Builder setConsentPendingIntent (PendingIntent consentPendingIntent)
Sets the (mandatory)
that can be launched by Google Play services to show the consent page during the flow.
When the launched Activity is finished, it has to provide the appropriate data in the
result that it returns to the caller, based on the following contract:
- If the user has accepted the consent, the launched Activity must call
RESULT_OK, along with a token as a (string) intent extra in the result, with the key
SaveAccountLinkingTokenRequest.EXTRA_TOKEN, similar to the following snippet:
Intent intent = new Intent(); intent.putExtra(SaveAccountLinkingTokenRequest.EXTRA_TOKEN, token); setResult(Activity.RESULT_OK, intent); finish();
- If, however, the user has rejected the consent, the Activity has to call
public SaveAccountLinkingTokenRequest.Builder setScopes (List<String> scopes)
Sets the list of scopes that are associated with the token that will be saved to Google. Calling this method with the correct scope(s) is required.
public SaveAccountLinkingTokenRequest.Builder setServiceId (String serviceId)
Sets the service-id that can be obtained from your Google Cloud project. Calling
this method to set
serviceId is required.
public SaveAccountLinkingTokenRequest.Builder setTokenType (String tokenType)
Sets the type of token that will be saved to Google. Valid options are: