Builder


class Builder
kotlin.Any
   ↳ android.agenticon.AgentTaskOutcome.Builder

Builder class for AgentTaskOutcome.

Summary

Public constructors

Creates a new Builder.

Public methods
AgentTaskOutcome

Builds and returns a new AgentTaskOutcome instance.

AgentTaskOutcome.Builder
setEventShown(eventShown: Boolean)

Sets whether the event has been displayed to the user in the status bar.

AgentTaskOutcome.Builder
setStateChanged(stateChanged: Boolean)

Sets whether the state has been successfully changed to the requested state.

Public constructors

Builder

Builder()

Creates a new Builder.

Public methods

build

fun build(): AgentTaskOutcome

Builds and returns a new AgentTaskOutcome instance.

Return
AgentTaskOutcome This value cannot be null.

setEventShown

fun setEventShown(eventShown: Boolean): AgentTaskOutcome.Builder

Sets whether the event has been displayed to the user in the status bar.

Return
AgentTaskOutcome.Builder This value cannot be null.

setStateChanged

fun setStateChanged(stateChanged: Boolean): AgentTaskOutcome.Builder

Sets whether the state has been successfully changed to the requested state.

Return
AgentTaskOutcome.Builder This value cannot be null.