Builder


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

Builder for AgentTaskUpdate.

Summary

Public constructors

Creates a new Builder.

Creates a new Builder from another Builder.

Public methods
AgentTaskUpdate

Creates the AgentTaskUpdate instance.

AgentTaskUpdate.Builder

Sets the agent task event.

AgentTaskUpdate.Builder

Sets the agent task state.

Public constructors

Builder

Builder()

Creates a new Builder.

Builder

Builder(other: AgentTaskUpdate.Builder)

Creates a new Builder from another Builder.

Parameters
other AgentTaskUpdate.Builder: This value cannot be null.

Public methods

build

fun build(): AgentTaskUpdate

Creates the AgentTaskUpdate instance.

Return
AgentTaskUpdate This value cannot be null.

setAgentTaskEvent

fun setAgentTaskEvent(agentTaskEvent: AgentTaskEvent?): AgentTaskUpdate.Builder

Sets the agent task event.

If null is set, no new event will be shown.

Parameters
agentTaskEvent AgentTaskEvent?: This value may be null.

setAgentTaskState

fun setAgentTaskState(agentTaskState: AgentTaskState?): AgentTaskUpdate.Builder

Sets the agent task state.

If null is set, the state will not change with this request. In order to reset to the default state, call android.app.StatusBarManager#setAgentTask with a null request.

Parameters
agentTaskState AgentTaskState?: This value may be null.