語言

StatusBarManager.GetAgentStateScreenLocation(Int32) 方法

定義

取得該顯示的代理任務狀態 UI 的絕對螢幕邊界。

[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

參數

displayId
Int32

顯示的 ID 用來查詢螢幕上的位置。

傳回

該顯示器中代理狀態圖示的絕對螢幕邊界。 若代理任務狀態在指定顯示中未顯示,或值取得時出現問題,則回傳 null。

屬性

適用於