ScreenWhisperInsight.Builder


public static final class ScreenWhisperInsight.Builder
extends Object

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


Builder for ScreenWhisperInsight.

Summary

Public constructors

Builder(ActionableInsight actionableInsight)

Creates a builder for ScreenWhisperInsight with an ActionableInsight child.

Builder(PromptInsight promptInsight)

Creates a builder for ScreenWhisperInsight with an PromptInsight child.

Public methods

ScreenWhisperInsight build()

Create and return a new ScreenWhisperInsight.

ScreenWhisperInsight.Builder setBranding(InsightBranding branding)

Sets branding to show the source of this insight.

Inherited methods

Public constructors

Builder

Added in version 37.2
public Builder (ActionableInsight actionableInsight)

Creates a builder for ScreenWhisperInsight with an ActionableInsight child.

Parameters
actionableInsight ActionableInsight: This value cannot be null.

Builder

Added in version 37.2
public Builder (PromptInsight promptInsight)

Creates a builder for ScreenWhisperInsight with an PromptInsight child.

Parameters
promptInsight PromptInsight: This value cannot be null.

Public methods

build

Added in version 37.2
public ScreenWhisperInsight build ()

Create and return a new ScreenWhisperInsight.

Returns
ScreenWhisperInsight This value cannot be null.

setBranding

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

Sets branding to show the source of this insight.

Parameters
branding InsightBranding: This value cannot be null.

Returns
ScreenWhisperInsight.Builder This value cannot be null.