Builder


class Builder
kotlin.Any
   ↳ 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

Create and return a new ScreenWhisperInsight.

ScreenWhisperInsight.Builder

Sets branding to show the source of this insight.

Public constructors

Builder

Builder(actionableInsight: ActionableInsight)

Creates a builder for ScreenWhisperInsight with an ActionableInsight child.

Parameters
actionableInsight ActionableInsight: This value cannot be null.

Builder

Builder(promptInsight: PromptInsight)

Creates a builder for ScreenWhisperInsight with an PromptInsight child.

Parameters
promptInsight PromptInsight: This value cannot be null.

Public methods

build

fun build(): ScreenWhisperInsight

Create and return a new ScreenWhisperInsight.

Return
ScreenWhisperInsight This value cannot be null.

setBranding

fun setBranding(branding: InsightBranding): ScreenWhisperInsight.Builder

Sets branding to show the source of this insight.

Parameters
branding InsightBranding: This value cannot be null.
Return
ScreenWhisperInsight.Builder This value cannot be null.