Language

StatusBarManager.CanSetAgentTask Method

Definition

Indicates whether the caller can currently set agent tasks in the status bar.

[Android.Runtime.Register("canSetAgentTask", "()Z", "GetCanSetAgentTaskHandler", ApiSince=37)]
public virtual bool CanSetAgentTask();
[<Android.Runtime.Register("canSetAgentTask", "()Z", "GetCanSetAgentTaskHandler", ApiSince=37)>]
abstract member CanSetAgentTask : unit -> bool
override this.CanSetAgentTask : unit -> bool

Returns

true if this app can currently send requests to modify the agents space, and the user has currently authorized this.

Attributes

Remarks

The service checks the calling package and user. This method returns false when the status-bar service is unavailable; a remote-service failure is rethrown.

Applies to