SignInTemplate
@RequiresCarApi(value = 2)
@CarProtocol
public final class SignInTemplate implements Template
A template that can be used to create a sign-in flow.
Template Restrictions This template's body is only available to the user while the car is parked and does not count against the template quota.| See also | |
|---|---|
onGetTemplate |
Summary
Nested types |
|---|
@RequiresCarApi(value = 2)A builder of |
public interface SignInTemplate.SignInMethodOne of the possible sign in methods that can be set on a |
Public methods |
|
|---|---|
boolean |
|
@Nullable ActionStrip |
Returns the |
@NonNull List<Action> |
Returns the list of |
@Nullable CarText |
Returns any additional text that needs to be displayed in the template or |
@Nullable Action |
Returns the |
@Nullable CarText |
Returns a text containing instructions on how to sign in or |
@NonNull SignInTemplate.SignInMethod |
Returns the sign-in method of this template. |
@Nullable CarText |
getTitle()Returns the title of the template or |
int |
hashCode() |
boolean |
Returns whether the template is loading. |
@NonNull String |
toString() |
Public methods
getActionStrip
public @Nullable ActionStrip getActionStrip()
Returns the ActionStrip for this template or null if not set.
| See also | |
|---|---|
setActionStrip |
getActions
public @NonNull List<Action> getActions()
Returns the list of Actions displayed alongside the SignInMethod in this template.
| See also | |
|---|---|
addAction |
getAdditionalText
public @Nullable CarText getAdditionalText()
Returns any additional text that needs to be displayed in the template or null if not set.
| See also | |
|---|---|
setAdditionalText |
getHeaderAction
public @Nullable Action getHeaderAction()
Returns the Action that is set to be displayed in the header of the template or null if not set.
| See also | |
|---|---|
setHeaderAction |
getInstructions
public @Nullable CarText getInstructions()
Returns a text containing instructions on how to sign in or null if not set.
| See also | |
|---|---|
setInstructions |
getSignInMethod
public @NonNull SignInTemplate.SignInMethod getSignInMethod()
Returns the sign-in method of this template.
| See also | |
|---|---|
Builder |
getTitle
public @Nullable CarText getTitle()
Returns the title of the template or null if not set.
| See also | |
|---|---|
setTitle |
isLoading
public boolean isLoading()
Returns whether the template is loading.
| See also | |
|---|---|
setLoading |