Google is committed to advancing racial equity for Black communities. See how.

Builder

class Builder : Builder<InlineSuggestionUi.Content!>
androidx.autofill.inline.v1.InlineSuggestionUi.Content.Builder

Builder for the Content.

Summary

Public methods
InlineSuggestionUi.Content

InlineSuggestionUi.Content.Builder
setContentDescription(@NonNull contentDescription: CharSequence)

Sets the content description for the suggestion view.

InlineSuggestionUi.Content.Builder
setEndIcon(@NonNull endIcon: Icon)

Sets the end icon of the suggestion UI.

InlineSuggestionUi.Content.Builder
setHints(@NonNull hints: MutableList<String!>)

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

InlineSuggestionUi.Content.Builder
setStartIcon(@NonNull startIcon: Icon)

Sets the start icon of the suggestion UI.

InlineSuggestionUi.Content.Builder
setSubtitle(@NonNull subtitle: CharSequence)

Sets the subtitle of the suggestion UI.

InlineSuggestionUi.Content.Builder
setTitle(@NonNull title: CharSequence)

Sets the title of the suggestion UI.

Public methods

build

@NonNull fun build(): InlineSuggestionUi.Content

setContentDescription

@NonNull fun setContentDescription(@NonNull contentDescription: CharSequence): InlineSuggestionUi.Content.Builder

Sets the content description for the suggestion view.

Parameters
contentDescription CharSequence: the content description.

setEndIcon

@NonNull fun setEndIcon(@NonNull endIcon: Icon): InlineSuggestionUi.Content.Builder

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.

setHints

@NonNull fun setHints(@NonNull hints: MutableList<String!>): InlineSuggestionUi.Content.Builder

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

Parameters
hints MutableList<String!>: defined in androidx.autofill.inline.SuggestionHintConstants

setStartIcon

@NonNull fun setStartIcon(@NonNull startIcon: Icon): InlineSuggestionUi.Content.Builder

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.

setSubtitle

@NonNull fun setSubtitle(@NonNull subtitle: CharSequence): InlineSuggestionUi.Content.Builder

Sets the subtitle of the suggestion UI.

Parameters
subtitle CharSequence: displayed as subtitle of slice.

setTitle

@NonNull fun setTitle(@NonNull title: CharSequence): InlineSuggestionUi.Content.Builder

Sets the title of the suggestion UI.

Parameters
title CharSequence: displayed as title of slice.