Added in API level 37.2
Builder
class Builder
| kotlin.Any | |
| ↳ | android.agenticon.AgentTaskOutcome.Builder |
Builder class for AgentTaskOutcome.
Summary
| Public constructors | |
|---|---|
Builder()Creates a new |
|
| Public methods | |
|---|---|
| AgentTaskOutcome |
build()Builds and returns a new |
| 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
Public methods
build
Added in API level 37.2
fun build(): AgentTaskOutcome
Builds and returns a new AgentTaskOutcome instance.
| Return | |
|---|---|
AgentTaskOutcome |
This value cannot be null. |
setEventShown
Added in API level 37.2
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
Added in API level 37.2
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. |