Builder


class Builder
kotlin.Any
   ↳ android.app.personalcontext.insight.NotificationInsight.Builder

Builder for NotificationInsight.

Summary

Public constructors

Public methods
NotificationInsight.Builder

Adds an insight to the builder's list of insights.

NotificationInsight.Builder

Adds an insight to the builder's list of insights.

NotificationInsight

Create and return a new NotificationInsight.

NotificationInsight.Builder

Sets branding to show the source of this insight.

Public constructors

Builder

Builder()

Public methods

addChildInsight

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

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

fun build(): NotificationInsight

Create and return a new NotificationInsight.

Return
NotificationInsight This value cannot be null.

setBranding

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.