BeginSignInRequest.Builder

public static final classBeginSignInRequest.BuilderextendsObject

This class is deprecated.
UseCredential Manager instead.

Builder forBeginSignInRequest.

Public Constructor Summary

Public Method Summary

BeginSignInRequest
build()
Returns the built BeginSignInRequest.
BeginSignInRequest.Builder
setAutoSelectEnabled(boolean autoSelectEnabled)
Sets the auto-select behavior in the request.
BeginSignInRequest.Builder
BeginSignInRequest.Builder
BeginSignInRequest.Builder
BeginSignInRequest.Builder
BeginSignInRequest.Builder
setPreferImmediatelyAvailableCredentials(boolean preferImmediatelyAvailableCredentials)
true if you prefer the operation to return immediately when there is no available credentials instead of falling back to discovering remote options, and false (default) otherwise.

Inherited Method Summary

Public Constructors

publicBuilder()

Public Methods

publicBeginSignInRequest build()

Returns the builtBeginSignInRequest.

public BeginSignInRequest.BuildersetAutoSelectEnabled(boolean autoSelectEnabled)

Sets the auto-select behavior in the request.

For users who opt-in, Auto Select allows a credential to be selected automatically without waiting for a user action (such as tapping on the "continue" button). A credential can be auto selected if 1) only one credential can be used for sign-in; and 2) no further actions need to be taken for this credential (for example, data sharing permissions are already collected for a Google account).

public BeginSignInRequest.BuildersetGoogleIdTokenRequestOptions(BeginSignInRequest.GoogleIdTokenRequestOptions googleIdTokenRequestOptions)

Sets the BeginSignInRequest.GoogleIdTokenRequestOptionsfor the request.

Use this method if you wish to retrieve an ID token issued on behalf of a Google account signed in on the device.

Parameters
googleIdTokenRequestOptions the BeginSignInRequest.GoogleIdTokenRequestOptionsfor the request

public BeginSignInRequest.BuildersetPasskeyJsonSignInRequestOptions(BeginSignInRequest.PasskeyJsonRequestOptions passkeyJsonRequestOptions)

Sets the BeginSignInRequest.PasskeyJsonRequestOptionsfor the request.

Use this method if you wish to retrieve passkeys.

Note:Use of this method is not supported directly. If you are interested in using passkeys, use theJetpack libraries.

Parameters
passkeyJsonRequestOptions the BeginSignInRequest.PasskeyJsonRequestOptionsfor the request

public BeginSignInRequest.BuildersetPasskeysSignInRequestOptions(BeginSignInRequest.PasskeysRequestOptions passkeysRequestOptions)

This method is deprecated.
Use setPasskeyJsonSignInRequestOptions(PasskeyJsonRequestOptions)

Sets the BeginSignInRequest.PasskeysRequestOptionsfor the request.

Note:Use of this method is not supported directly. If you are interested in using passkeys, use theJetpack libraries.

Parameters
passkeysRequestOptions the BeginSignInRequest.PasskeysRequestOptionsfor the request

public BeginSignInRequest.BuildersetPasswordRequestOptions(BeginSignInRequest.PasswordRequestOptions passwordRequestOptions)

Sets the BeginSignInRequest.PasswordRequestOptionsfor the request.

Use this method if you wish to retrieve passwords previously saved to a Google account signed in on the device through mechanisms like Smart Lock for Passwords, Chrome password manager or Android Autofill.

Parameters
passwordRequestOptions the BeginSignInRequest.PasswordRequestOptionsfor the request

public BeginSignInRequest.BuildersetPreferImmediatelyAvailableCredentials(boolean preferImmediatelyAvailableCredentials)

true if you prefer the operation to return immediately when there is no available credentials instead of falling back to discovering remote options, and false (default) otherwise.