InlineSuggestionUi.Content.Builder


class InlineSuggestionUi.Content.Builder


Builder for the Content.

Summary

Public functions

InlineSuggestionUi.Content

Returns a subclass of SlicedContent built by this builder.

InlineSuggestionUi.Content.Builder
setContentDescription(contentDescription: CharSequence)

Sets the content description for the suggestion view.

InlineSuggestionUi.Content.Builder
setEndIcon(endIcon: Icon)

Sets the end icon of the suggestion UI.

InlineSuggestionUi.Content.Builder

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

InlineSuggestionUi.Content.Builder
setStartIcon(startIcon: Icon)

Sets the start icon of the suggestion UI.

InlineSuggestionUi.Content.Builder

Sets the subtitle of the suggestion UI.

InlineSuggestionUi.Content.Builder

Sets the title of the suggestion UI.

Public functions

build

Added in 1.1.0
fun build(): InlineSuggestionUi.Content

Returns a subclass of SlicedContent built by this builder.

setContentDescription

Added in 1.1.0
fun setContentDescription(contentDescription: CharSequence): InlineSuggestionUi.Content.Builder

Sets the content description for the suggestion view.

Parameters
contentDescription: CharSequence

the content description.

setEndIcon

Added in 1.1.0
fun setEndIcon(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

Added in 1.1.0
fun setHints(hints: (Mutable)List<String!>): InlineSuggestionUi.Content.Builder

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

setStartIcon

Added in 1.1.0
fun setStartIcon(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

Added in 1.1.0
fun setSubtitle(subtitle: CharSequence): InlineSuggestionUi.Content.Builder

Sets the subtitle of the suggestion UI.

Parameters
subtitle: CharSequence

displayed as subtitle of slice.

setTitle

Added in 1.1.0
fun setTitle(title: CharSequence): InlineSuggestionUi.Content.Builder

Sets the title of the suggestion UI.

Parameters
title: CharSequence

displayed as title of slice.