public static class StepViewModel.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(android.content.Context context)
Creates a builder for the step info.
|
| Modifier and Type | Method and Description |
|---|---|
StepViewModel |
create()
Creates a
StepViewModel with the arguments supplied to this
builder. |
StepViewModel.Builder |
setBackButtonLabel(java.lang.CharSequence backButtonLabel)
Set the label of the back button.
|
StepViewModel.Builder |
setBackButtonLabel(int backButtonLabelId)
Set the label of the back button using the given resource id.
|
StepViewModel.Builder |
setBackButtonStartDrawableResId(int backButtonStartDrawableResId)
Set the drawable resource ID to be used for back button's start compound drawable.
|
StepViewModel.Builder |
setBackButtonVisible(boolean backButtonVisible)
Set the flag indicating if the Back button should be shown on the bottom bar.
|
StepViewModel.Builder |
setEndButtonLabel(java.lang.CharSequence endButtonLabel)
Set the label of the Complete/Next button.
|
StepViewModel.Builder |
setEndButtonLabel(int endButtonLabelId)
Set the label of the Complete/Next button using the given resource id.
|
StepViewModel.Builder |
setEndButtonVisible(boolean endButtonVisible)
Set the flag indicating if the Next/Complete button should be shown on the bottom bar.
|
StepViewModel.Builder |
setNextButtonEndDrawableResId(int nextButtonEndDrawableResId)
Set the drawable resource ID to be used for next button's end compound drawable.
|
StepViewModel.Builder |
setSubtitle(java.lang.CharSequence subtitle)
Set the subtitle using the given characters.
|
StepViewModel.Builder |
setSubtitle(int subtitleId)
Set the subtitle using the given resource id.
|
StepViewModel.Builder |
setTitle(java.lang.CharSequence title)
Set the title using the given characters.
|
StepViewModel.Builder |
setTitle(int titleId)
Set the title using the given resource id.
|
public Builder(@NonNull
android.content.Context context)
context - the parent contextpublic StepViewModel.Builder setTitle(@StringRes int titleId)
titleId - string resource ID for the titlepublic StepViewModel.Builder setTitle(@Nullable java.lang.CharSequence title)
title - CharSequence to be used as a titlepublic StepViewModel.Builder setSubtitle(@StringRes int subtitleId)
subtitleId - string resource ID for the subtitlepublic StepViewModel.Builder setSubtitle(@Nullable java.lang.CharSequence subtitle)
subtitle - CharSequence to be used as a subtitlepublic StepViewModel.Builder setEndButtonLabel(@Nullable java.lang.CharSequence endButtonLabel)
endButtonLabel - CharSequence to be used as a Complete/Next button labelpublic StepViewModel.Builder setEndButtonLabel(@StringRes int endButtonLabelId)
endButtonLabelId - string resource ID for the Complete/Next buttonpublic StepViewModel.Builder setBackButtonLabel(@StringRes int backButtonLabelId)
backButtonLabelId - string resource ID for the Back buttonpublic StepViewModel.Builder setBackButtonLabel(@Nullable java.lang.CharSequence backButtonLabel)
backButtonLabel - CharSequence to be used as a Back button labelpublic StepViewModel.Builder setNextButtonEndDrawableResId(@DrawableRes int nextButtonEndDrawableResId)
nextButtonEndDrawableResId - drawable resource ID to be used for next button's end compound drawable.public StepViewModel.Builder setBackButtonStartDrawableResId(@DrawableRes int backButtonStartDrawableResId)
backButtonStartDrawableResId - drawable resource ID to be used for back button's start compound drawable.public StepViewModel.Builder setEndButtonVisible(boolean endButtonVisible)
endButtonVisible - true if Next/Complete button should be shown, false otherwisepublic StepViewModel.Builder setBackButtonVisible(boolean backButtonVisible)
backButtonVisible - true if Back button should be shown, false otherwisepublic StepViewModel create()
StepViewModel with the arguments supplied to this
builder.