AgentTaskUpdate
class AgentTaskUpdate : Parcelable
| kotlin.Any | |
| ↳ | android.agenticon.AgentTaskUpdate |
Data to request a change in the UI for Agent Task space in the status bar.
- If
getAgentTaskState()is nonnull, this will become the current state and its icon will be shown (when there are no events to show) until the next request for state is placed. If this isnull, the last sent state will be maintained. - If
getAgentTaskEvent()is nonnull, the text will be shown for a short period of time. It is possible that in some circumstances, the text cannot be shown. - If neither
getAgentTaskState()orgetAgentTaskEvent()arenull, the text ingetAgentTaskEvent()will be shown if possible, and the state will be set togetAgentTaskState(). Setting them together will guarantee that after theAgentTaskEvent, the state will be set to the correct value. - If both elements are
null, no changes will be applied.
Summary
| Nested classes | |
|---|---|
|
Builder for |
|
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| AgentTaskEvent? |
An event to show in the status bar for a short period of time. |
| AgentTaskState? |
The next state to show in the status bar space. |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<AgentTaskUpdate!> | |
Public methods
describeContents
fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
getAgentTaskEvent
fun getAgentTaskEvent(): AgentTaskEvent?
An event to show in the status bar for a short period of time. If null, no event will be shown.
getAgentTaskState
fun getAgentTaskState(): AgentTaskState?
The next state to show in the status bar space. If null, the last state will be maintained.
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following:
|