Share via


UiAutomation.Windows プロパティ

定義

コンテキスト (通常は android.view.Display#DEFAULT_DISPLAY既定の表示) に関連付UiAutomationけられている画面上のウィンドウを取得します。

        <p>
        This method returns only the windows that a sighted user can interact with, as opposed to
        all windows.

        <p>
        For example, if there is a modal dialog shown and the user cannot touch
        anything behind it, then only the modal window will be reported
        (assuming it is the top one). For convenience the returned windows
        are ordered in a descending layer order, which is the windows that
        are higher in the Z-order are reported first.
        <p>
        <strong>Note:</strong> In order to access the windows you have to opt-in
        to retrieve the interactive windows by setting the
        {@link AccessibilityServiceInfo#FLAG_RETRIEVE_INTERACTIVE_WINDOWS</code> flag.
public System.Collections.Generic.IList<Android.Views.Accessibility.AccessibilityWindowInfo>? Windows { [Android.Runtime.Register("getWindows", "()Ljava/util/List;", "")] get; }
[<get: Android.Runtime.Register("getWindows", "()Ljava/util/List;", "")>]
member this.Windows : System.Collections.Generic.IList<Android.Views.Accessibility.AccessibilityWindowInfo>

プロパティ値

このようなウィンドウがある場合はウィンドウ、それ以外の場合は空のリスト。

属性

注釈

コンテキスト (通常は android.view.Display#DEFAULT_DISPLAY既定の表示) に関連付UiAutomationけられている画面上のウィンドウを取得します。

<p> このメソッドは、すべてのウィンドウではなく、視覚ユーザーが操作できるウィンドウのみを返します。

<p> たとえば、モーダル ダイアログが表示されていて、その背後に何も触れることができない場合は、モーダル ウィンドウのみが報告されます (上部のウィンドウであると仮定)。 便宜上、返されるウィンドウは降順で並べ替えられます。これは、Z オーダーの上位のウィンドウが最初に報告されます。 <p><strong>Note:</strong> Windows にアクセスするには、{@link AccessibilityServiceInfo#FLAG_RETRIEVE_INTERACTIVE_WINDOWS フラグを設定して対話型ウィンドウを取得することをオプトインする 必要があります。

の Java ドキュメント android.app.UiAutomation.getWindows()

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象