Builder for
SaveAccountLinkingTokenRequest.
|
Builder()
|
| SaveAccountLinkingTokenRequest |
build()
Builds an immutable instance of the
SaveAccountLinkingTokenRequest.
|
| SaveAccountLinkingTokenRequest.Builder |
setConsentPendingIntent(PendingIntent
consentPendingIntent)
Sets the (mandatory)
PendingIntent
that can be launched by Google Play services to show the consent page during
the flow.
|
| SaveAccountLinkingTokenRequest.Builder | |
| SaveAccountLinkingTokenRequest.Builder |
setServiceId(String serviceId)
Sets the service-id that can be obtained from your Google Cloud project.
|
| SaveAccountLinkingTokenRequest.Builder |
Builds an immutable instance of the
SaveAccountLinkingTokenRequest.
Sets the (mandatory) PendingIntent
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:
setResult with 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();
setResult with RESULT_CANCELED.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.
Sets the service-id that can be obtained from your Google Cloud project. Calling
this method to set serviceId is required.
Sets the type of token that will be saved to Google. Valid options are:
Calling this method with a valid token type is required.