public final class

InlineSuggestionUi.Content.Builder

extends SlicedContent.Builder<InlineSuggestionUi.Content>

 java.lang.Object

androidx.autofill.inline.common.SlicedContent.Builder<InlineSuggestionUi.Content>

↳androidx.autofill.inline.v1.InlineSuggestionUi.Content.Builder

Overview

Builder for the InlineSuggestionUi.Content.

Summary

Fields
from SlicedContent.Builder<T>mSliceBuilder
Methods
public abstract SlicedContentbuild()

Returns a subclass of SlicedContent built by this builder.

public InlineSuggestionUi.Content.BuildersetContentDescription(java.lang.CharSequence contentDescription)

Sets the content description for the suggestion view.

public InlineSuggestionUi.Content.BuildersetEndIcon(Icon endIcon)

Sets the end icon of the suggestion UI.

public InlineSuggestionUi.Content.BuildersetHints(java.util.List<java.lang.String> hints)

Sets hints to indicate the kind of data in the suggestion.

public InlineSuggestionUi.Content.BuildersetStartIcon(Icon startIcon)

Sets the start icon of the suggestion UI.

public InlineSuggestionUi.Content.BuildersetSubtitle(java.lang.CharSequence subtitle)

Sets the subtitle of the suggestion UI.

public InlineSuggestionUi.Content.BuildersetTitle(java.lang.CharSequence title)

Sets the title of the suggestion UI.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public InlineSuggestionUi.Content.Builder setTitle(java.lang.CharSequence title)

Sets the title of the suggestion UI.

Parameters:

title: displayed as title of slice.

public InlineSuggestionUi.Content.Builder setSubtitle(java.lang.CharSequence subtitle)

Sets the subtitle of the suggestion UI.

Parameters:

subtitle: displayed as subtitle of slice.

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: resource displayed at start of slice.

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: resource displayed at end of slice.

public InlineSuggestionUi.Content.Builder setContentDescription(java.lang.CharSequence contentDescription)

Sets the content description for the suggestion view.

Parameters:

contentDescription: the content description.

See also: View

public InlineSuggestionUi.Content.Builder setHints(java.util.List<java.lang.String> hints)

Sets hints to indicate the kind of data in the suggestion.

Parameters:

hints: defined in SuggestionHintConstants

public abstract SlicedContent build()

Returns a subclass of SlicedContent built by this builder.