InlineSuggestionUi.Content.Builder
public
static
final
class
InlineSuggestionUi.Content.Builder
extends Object
java.lang.Object | |
↳ | androidx.autofill.inline.v1.InlineSuggestionUi.Content.Builder |
Builder for the InlineSuggestionUi.Content
.
Summary
Fields | |
---|---|
protected
final
Slice.Builder |
mSliceBuilder
|
Public methods | |
---|---|
InlineSuggestionUi.Content
|
build()
Returns a subclass of SlicedContent built by this builder. |
InlineSuggestionUi.Content.Builder
|
setContentDescription(CharSequence contentDescription)
Sets the content description for the suggestion view. |
InlineSuggestionUi.Content.Builder
|
setEndIcon(Icon endIcon)
Sets the end icon of the suggestion UI. |
InlineSuggestionUi.Content.Builder
|
setHints(List<String> hints)
Sets hints to indicate the kind of data in the suggestion. |
InlineSuggestionUi.Content.Builder
|
setStartIcon(Icon startIcon)
Sets the start icon of the suggestion UI. |
InlineSuggestionUi.Content.Builder
|
setSubtitle(CharSequence subtitle)
Sets the subtitle of the suggestion UI. |
InlineSuggestionUi.Content.Builder
|
setTitle(CharSequence title)
Sets the title of the suggestion UI. |
Inherited methods | |
---|---|
Fields
Public methods
build
public InlineSuggestionUi.Content build ()
Returns a subclass of SlicedContent built by this builder.
Returns | |
---|---|
InlineSuggestionUi.Content |
setContentDescription
public InlineSuggestionUi.Content.Builder setContentDescription (CharSequence contentDescription)
Sets the content description for the suggestion view.
Parameters | |
---|---|
contentDescription |
CharSequence : the content description. |
Returns | |
---|---|
InlineSuggestionUi.Content.Builder |
See also:
setEndIcon
public InlineSuggestionUi.Content.Builder setEndIcon (Icon endIcon)
Sets the end icon of the suggestion UI.
Note that the ImageViewStyle
style may specify the tint list to be
applied on the icon. If you don't want that, you may disable it by calling Icon#setTintBlendMode(BlendMode.DST)
.
Parameters | |
---|---|
endIcon |
Icon : Icon resource displayed at end of slice.
|
Returns | |
---|---|
InlineSuggestionUi.Content.Builder |
setHints
public InlineSuggestionUi.Content.Builder setHints (List<String> hints)
Sets hints to indicate the kind of data in the suggestion.
Parameters | |
---|---|
hints |
List : defined in SuggestionHintConstants
|
Returns | |
---|---|
InlineSuggestionUi.Content.Builder |
setStartIcon
public InlineSuggestionUi.Content.Builder setStartIcon (Icon startIcon)
Sets the start icon of the suggestion UI.
Note that the ImageViewStyle
style may specify the tint list to be
applied on the icon. If you don't want that, you may disable it by calling Icon#setTintBlendMode(BlendMode.DST)
.
Parameters | |
---|---|
startIcon |
Icon : Icon resource displayed at start of slice.
|
Returns | |
---|---|
InlineSuggestionUi.Content.Builder |
setSubtitle
public InlineSuggestionUi.Content.Builder setSubtitle (CharSequence subtitle)
Sets the subtitle of the suggestion UI.
Parameters | |
---|---|
subtitle |
CharSequence : displayed as subtitle of slice.
|
Returns | |
---|---|
InlineSuggestionUi.Content.Builder |
setTitle
public InlineSuggestionUi.Content.Builder setTitle (CharSequence title)
Sets the title of the suggestion UI.
Parameters | |
---|---|
title |
CharSequence : displayed as title of slice.
|
Returns | |
---|---|
InlineSuggestionUi.Content.Builder |