Język

StatusBarManager.GetAgentStateScreenLocation(Int32) Method

Definition

Fetches the absolute on-screen bounds of the agent task state UI for the given display.

[Android.Runtime.Register("getAgentStateScreenLocation", "(I)Landroid/graphics/Rect;", "GetGetAgentStateScreenLocation_IHandler", ApiSince=37)]
public virtual Android.Graphics.Rect? GetAgentStateScreenLocation(int displayId);
[<Android.Runtime.Register("getAgentStateScreenLocation", "(I)Landroid/graphics/Rect;", "GetGetAgentStateScreenLocation_IHandler", ApiSince=37)>]
abstract member GetAgentStateScreenLocation : int -> Android.Graphics.Rect
override this.GetAgentStateScreenLocation : int -> Android.Graphics.Rect

Parameters

displayId
Int32

the ID of the display to query for the on-screen location.

Returns

the absolute on-screen bounds of the agent state icon for the given display. Returns null if agent task state is not visible on the given display or if there was a problem fetching the value.

Attributes

Applies to