Added in API level 37.2
Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.personalcontext.insight.NotificationInsight.Builder |
Builder for NotificationInsight.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| NotificationInsight.Builder |
addChildInsight(insight: ActionableInsight)Adds an insight to the builder's list of insights. |
| NotificationInsight.Builder |
addChildInsight(insight: DisplayInsight)Adds an insight to the builder's list of insights. |
| NotificationInsight |
build()Create and return a new |
| NotificationInsight.Builder |
setBranding(branding: InsightBranding)Sets branding to show the source of this insight. |
Public constructors
Builder
Builder()
Public methods
addChildInsight
Added in API level 37.2
fun addChildInsight(insight: ActionableInsight): NotificationInsight.Builder
Adds an insight to the builder's list of insights.
| Parameters | |
|---|---|
insight |
ActionableInsight: This value cannot be null. |
| Return | |
|---|---|
NotificationInsight.Builder |
This value cannot be null. |
addChildInsight
Added in API level 37.2
fun addChildInsight(insight: DisplayInsight): NotificationInsight.Builder
Adds an insight to the builder's list of insights.
| Parameters | |
|---|---|
insight |
DisplayInsight: This value cannot be null. |
| Return | |
|---|---|
NotificationInsight.Builder |
This value cannot be null. |
build
Added in API level 37.2
fun build(): NotificationInsight
Create and return a new NotificationInsight.
| Return | |
|---|---|
NotificationInsight |
This value cannot be null. |
setBranding
Added in API level 37.2
fun setBranding(branding: InsightBranding): NotificationInsight.Builder
Sets branding to show the source of this insight.
| Parameters | |
|---|---|
branding |
InsightBranding: This value cannot be null. |
| Return | |
|---|---|
NotificationInsight.Builder |
This value cannot be null. |