ProviderSignInMethod
@RequiresCarApi(value = 2)
@CarProtocol
public final class ProviderSignInMethod implements SignInTemplate.SignInMethod
A SignInTemplate.SignInMethod that allows the user to initiate sign-in with a authentication provider.
Not all providers will be available on all devices. It is the developer's responsibility to verify the presence of the corresponding provider by using the provider's own APIs. For example, for Google Sign In, check Integrating Google Sign-In into Your Android App).
Summary
Public constructors |
|---|
ProviderSignInMethod(@NonNull Action action)Creates a |
Public methods |
|
|---|---|
boolean |
|
@NonNull Action |
Returns the |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
ProviderSignInMethod
public ProviderSignInMethod(@NonNull Action action)
Creates a ProviderSignInMethod instance with the given provider Action.
androidx.car.app.model.ParkedOnlyOnClickListener.
The action's title color can be customized with ForegroundCarColorSpan instances, any other spans will be ignored by the host.
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if |
java.lang.NullPointerException |
if |
| See also | |
|---|---|
Action |
|
ParkedOnlyOnClickListener |