Condividi tramite


UiAutomation.GetWindowContentFrameStats(Int32) Metodo

Definizione

Ottiene le statistiche dei frame per una determinata finestra.

[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

Parametri

windowId
Int32

ID finestra.

Restituisce

Statistiche dei frame della finestra o Null se la finestra non è presente.

Attributi

Commenti

Ottiene le statistiche dei frame per una determinata finestra. Queste statistiche contengono informazioni sui fotogrammi di contenuto di cui è stato eseguito il rendering più di recente.

Un utilizzo tipico richiede la cancellazione delle statistiche dei fotogrammi della finestra tramite #clearWindowContentFrameStats(int) seguito da un'interazione con l'interfaccia utente e infine il recupero delle statistiche dei fotogrammi della finestra tramite la chiamata a questo metodo.

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

Documentazione java per android.app.UiAutomation.getWindowContentFrameStats(int).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a

Vedi anche