BeginSignInRequest.Builder

public static final class BeginSignInRequest.Builder extends Object

Builder for BeginSignInRequest.

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

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public BeginSignInRequest build ()

Returns the built BeginSignInRequest.

public BeginSignInRequest.Builder setAutoSelectEnabled (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.Builder setGoogleIdTokenRequestOptions (BeginSignInRequest.GoogleIdTokenRequestOptions googleIdTokenRequestOptions)

Sets the BeginSignInRequest.GoogleIdTokenRequestOptions for 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.GoogleIdTokenRequestOptions for the request

public BeginSignInRequest.Builder setPasskeyJsonSignInRequestOptions (BeginSignInRequest.PasskeyJsonRequestOptions passkeyJsonRequestOptions)

Sets the BeginSignInRequest.PasskeyJsonRequestOptions for 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 the Jetpack libraries.

Parameters
passkeyJsonRequestOptions the BeginSignInRequest.PasskeyJsonRequestOptions for the request

public BeginSignInRequest.Builder setPasskeysSignInRequestOptions (BeginSignInRequest.PasskeysRequestOptions passkeysRequestOptions)

This method is deprecated.
Use setPasskeyJsonSignInRequestOptions(PasskeyJsonRequestOptions)

Sets the BeginSignInRequest.PasskeysRequestOptions for the request.

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

Parameters
passkeysRequestOptions the BeginSignInRequest.PasskeysRequestOptions for the request

public BeginSignInRequest.Builder setPasswordRequestOptions (BeginSignInRequest.PasswordRequestOptions passwordRequestOptions)

Sets the BeginSignInRequest.PasswordRequestOptions for 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.PasswordRequestOptions for the request