java.lang.Object | |
↳ | com.google.android.gms.auth.api.credentials.HintRequest.Builder |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builds a
HintRequest . | |||||||||||
Sets the account types (identity providers) that are accepted by this application.
| |||||||||||
Enables returning
credential hints where the identifier is an email
address, intended for use with a password chosen by the user. | |||||||||||
Sets the configuration for the hint picker dialog.
| |||||||||||
Specify a nonce value that should be included in any generated ID token for this request.
| |||||||||||
Specify whether an ID token should be acquired for hints, if available for the selected
credential identifier.
| |||||||||||
Enables returning
credential hints where the identifier is a phone number,
intended for use with a password chosen by the user or SMS verification. | |||||||||||
Specify the server client ID for the backend associated with this app.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Sets the account types (identity providers) that are accepted by this application. It is
strongly recommended that the strings listed in IdentityProviders
be used for the most common identity providers, and strings representing the login domain of
the identity provider be used for any others which are not listed.
Parameters | |
---|---|
accountTypes |
String :
The list of account types (identity providers) supported by the app.
typically in the form of the associated login domain for each identity provider.
|
Returns | |
---|---|
HintRequest.Builder |
Enables returning credential
hints where the identifier is an email
address, intended for use with a password chosen by the user.
Parameters | |
---|---|
emailAddressIdentifierSupported |
boolean
|
Returns | |
---|---|
HintRequest.Builder |
Sets the configuration for the hint picker dialog.
Parameters | |
---|---|
hintPickerConfig |
CredentialPickerConfig
|
Returns | |
---|---|
HintRequest.Builder |
Specify a nonce value that should be included in any generated ID token for this request.
Parameters | |
---|---|
idTokenNonce |
String
|
Returns | |
---|---|
HintRequest.Builder |
Specify whether an ID token should be acquired for hints, if available for the selected credential identifier. This is enabled by default; disable this if your app does not use ID tokens as part of authentication to decrease latency in retrieving credentials and credential hints.
Parameters | |
---|---|
idTokenRequested |
boolean
|
Returns | |
---|---|
HintRequest.Builder |
Enables returning credential
hints where the identifier is a phone number,
intended for use with a password chosen by the user or SMS verification.
Parameters | |
---|---|
phoneNumberIdentifierSupported |
boolean
|
Returns | |
---|---|
HintRequest.Builder |
Specify the server client ID for the backend associated with this app. If a Google ID token can be generated for a retrieved credential or hint, and the specified server client ID is correctly configured to be associated with the app, then it will be used as the audience of the generated token. If a null value is specified, the default audience will be used for the generated ID token.
Parameters | |
---|---|
serverClientId |
String
|
Returns | |
---|---|
HintRequest.Builder |