ProviderSignInMethod

public final class ProviderSignInMethod
extends Object implements SignInTemplate.SignInMethod

java.lang.Object
   ↳ androidx.car.app.model.signin.ProviderSignInMethod


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

Nested classes

class ProviderSignInMethod.Builder

A builder of ProviderSignInMethod

Public methods

boolean equals(Object other)
Action getAction()

Returns the Action the user can use to initiate the sign-in with a given provider or null if not set.

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getAction

public Action getAction ()

Returns the Action the user can use to initiate the sign-in with a given provider or null if not set.

Returns
Action

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String