StatusBarManager.GetAgentStateScreenLocation(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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