Freigeben über


UiAutomation.GetWindowContentFrameStats(Int32) Methode

Definition

Ruft die Framestatistiken für ein bestimmtes Fenster ab.

[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

Parameter

windowId
Int32

Die Fenster-ID.

Gibt zurück

Die Fensterrahmenstatistik oder NULL, wenn das Fenster nicht vorhanden ist.

Attribute

Hinweise

Ruft die Framestatistiken für ein bestimmtes Fenster ab. Diese Statistiken enthalten Informationen zu den zuletzt gerenderten Inhaltsframes.

Eine typische Verwendung erfordert das Löschen der Fensterframestatistiken über #clearWindowContentFrameStats(int) eine Interaktion mit der Benutzeroberfläche und schließlich das Abrufen der Fensterframestatistiken durch Aufrufen dieser Methode.

// 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);

Java-Dokumentation für android.app.UiAutomation.getWindowContentFrameStats(int).

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die vom Android Open Source-Projekt erstellt und freigegeben werden und gemäß den in der Creative Commons 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für:

Weitere Informationen