Language

StatusBarManager.SetAgentTask Method

Definition

Requests that a specific Agent Task be shown in the corresponding space.

[Android.Runtime.Register("setAgentTask", "(Landroid/agenticon/AgentTaskUpdate;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetSetAgentTask_Landroid_agenticon_AgentTaskUpdate_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=37)]
public virtual void SetAgentTask(Android.AgentIcon.AgentTaskUpdate? request, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver outcomeReceiver);
[<Android.Runtime.Register("setAgentTask", "(Landroid/agenticon/AgentTaskUpdate;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetSetAgentTask_Landroid_agenticon_AgentTaskUpdate_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=37)>]
abstract member SetAgentTask : Android.AgentIcon.AgentTaskUpdate * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.SetAgentTask : Android.AgentIcon.AgentTaskUpdate * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

request
AgentTaskUpdate

the agent task information to show to the user, or null to reset to default

executor
IExecutor

an executor for calling into outcomeReceiver

outcomeReceiver
IOutcomeReceiver

a callback for receiving the result of the request, or an error if the call could not be processed.

Attributes

Remarks

Result callbacks run through the supplied executor. An unavailable service is reported through the error callback, while a remote exception from the initial service call is rethrown.

Applies to