Compartir a través de


UiAutomation.GetWindowContentFrameStats(Int32) Método

Definición

Obtiene las estadísticas de marco de una ventana determinada.

[Android.Runtime.Register("getWindowContentFrameStats", "(I)Landroid/view/WindowContentFrameStats;", "")]
public Android.Views.WindowContentFrameStats? GetWindowContentFrameStats (int windowId);
[<Android.Runtime.Register("getWindowContentFrameStats", "(I)Landroid/view/WindowContentFrameStats;", "")>]
member this.GetWindowContentFrameStats : int -> Android.Views.WindowContentFrameStats

Parámetros

windowId
Int32

Identificador de la ventana.

Devoluciones

Estadísticas de marco de ventana o null si la ventana no está presente.

Atributos

Comentarios

Obtiene las estadísticas de marco de una ventana determinada. Estas estadísticas contienen información sobre los fotogramas de contenido representados más recientemente.

Un uso típico requiere borrar las estadísticas del marco de ventana a través #clearWindowContentFrameStats(int) de una interacción con la interfaz de usuario y finalmente obtener las estadísticas del marco de ventana mediante una llamada a este método.

// Assume we have at least one window.
            final int windowId = getWindows().get(0).getId();

            // Start with a clean slate.
            uiAutimation.clearWindowContentFrameStats(windowId);

            // Do stuff with the UI.

            // Get the frame statistics.
            WindowContentFrameStats stats = uiAutomation.getWindowContentFrameStats(windowId);

Documentación de Java para android.app.UiAutomation.getWindowContentFrameStats(int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código y se usan según los términos descritos en la creative Commons 2.5.

Se aplica a

Consulte también