Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.personalcontext.insight.InsightDisplayDetails.Builder |
Builder for InsightDisplayDetails.
Summary
| Public constructors | |
|---|---|
|
Creates a new builder for the insight display details. |
|
Builder(title: CharSequence)Creates a new builder for the insight display details. |
|
Builder(title: CharSequence, icon: Icon)Creates a new builder for the insight display details. |
|
| Public methods | |
|---|---|
| InsightDisplayDetails |
build()Builds the |
| InsightDisplayDetails.Builder |
setContentDescription(contentDescription: CharSequence?)Sets the content description of the insight. |
| InsightDisplayDetails.Builder |
setSubtitle(subtitle: CharSequence?)Sets the subtitle of the insight. |
Public constructors
Builder
Builder(icon: Icon)
Creates a new builder for the insight display details. Used when only the icon is available.
| Parameters | |
|---|---|
icon |
Icon: the icon of the insight. This value cannot be null. |
Builder
Builder(title: CharSequence)
Creates a new builder for the insight display details. Used when only the title is available.
| Parameters | |
|---|---|
title |
CharSequence: the title of the insight. This value cannot be null. |
Builder
Builder(
title: CharSequence,
icon: Icon)
Creates a new builder for the insight display details. Used when both the title and icon are available.
| Parameters | |
|---|---|
title |
CharSequence: the title of the insight. This value cannot be null. |
icon |
Icon: the icon of the insight. This value cannot be null. |
Public methods
build
fun build(): InsightDisplayDetails
Builds the InsightDisplayDetails.
| Return | |
|---|---|
InsightDisplayDetails |
the InsightDisplayDetails. This value cannot be null. |
setContentDescription
fun setContentDescription(contentDescription: CharSequence?): InsightDisplayDetails.Builder
Sets the content description of the insight.
| Parameters | |
|---|---|
contentDescription |
CharSequence?: the content description of the insight. null can be specified to clear the content description. |
| Return | |
|---|---|
InsightDisplayDetails.Builder |
This value cannot be null. |
setSubtitle
fun setSubtitle(subtitle: CharSequence?): InsightDisplayDetails.Builder
Sets the subtitle of the insight.
| Parameters | |
|---|---|
subtitle |
CharSequence?: the subtitle of the insight. null can be specified to clear the subtitle. |
| Return | |
|---|---|
InsightDisplayDetails.Builder |
This value cannot be null. |