NotificationInsight.Builder


public static final class NotificationInsight.Builder
extends Object

java.lang.Object
   ↳ android.app.personalcontext.insight.NotificationInsight.Builder


Builder for NotificationInsight.

Summary

Public constructors

Builder()

Public methods

NotificationInsight.Builder addChildInsight(DisplayInsight insight)

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

NotificationInsight.Builder addChildInsight(ActionableInsight insight)

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

NotificationInsight build()

Create and return a new NotificationInsight.

NotificationInsight.Builder setBranding(InsightBranding branding)

Sets branding to show the source of this insight.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

addChildInsight

Added in version 37.2
public NotificationInsight.Builder addChildInsight (DisplayInsight insight)

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

Parameters
insight DisplayInsight: This value cannot be null.

Returns
NotificationInsight.Builder This value cannot be null.

addChildInsight

Added in version 37.2
public NotificationInsight.Builder addChildInsight (ActionableInsight insight)

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

Parameters
insight ActionableInsight: This value cannot be null.

Returns
NotificationInsight.Builder This value cannot be null.

build

Added in version 37.2
public NotificationInsight build ()

Create and return a new NotificationInsight.

Returns
NotificationInsight This value cannot be null.

setBranding

Added in version 37.2
public NotificationInsight.Builder setBranding (InsightBranding branding)

Sets branding to show the source of this insight.

Parameters
branding InsightBranding: This value cannot be null.

Returns
NotificationInsight.Builder This value cannot be null.