UiAutomation.Windows Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Obtiene las ventanas de la pantalla asociadas al contexto (normalmente la UiAutomation
pantalla android.view.Display#DEFAULT_DISPLAY pantalla predeterminada).
<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>
Valor de propiedad
Ventanas si hay ventanas, de lo contrario, una lista vacía.
- Atributos
Comentarios
Obtiene las ventanas de la pantalla asociadas al contexto (normalmente la UiAutomation
pantalla android.view.Display#DEFAULT_DISPLAY pantalla predeterminada).
<p> Este método devuelve solo las ventanas con las que un usuario visto puede interactuar, en lugar de todas las ventanas.
<p> Por ejemplo, si se muestra un cuadro de diálogo modal y el usuario no puede tocar nada detrás de él, solo se notificará la ventana modal (suponiendo que sea la superior). Para mayor comodidad, las ventanas devueltas se ordenan en orden descendente, que es las ventanas que están más altas en el orden Z se notifican primero. <p><strong>Note:</strong> Para tener acceso a las ventanas, tiene que optar por recuperar las ventanas interactivas estableciendo la marca {@link AccessibilityServiceInfo#FLAG_RETRIEVE_INTERACTIVE_WINDOWS .
Documentación de Java para android.app.UiAutomation.getWindows()
.
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código Project y que se usan según los términos Creative Commons 2.5 Attribution License.