Lingua

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.

Valori restituiti

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 per ottenere le 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);

Genera: IllegalStateException Se la connessione al sottosistema di accessibilità non viene stabilita.

Informazioni di riferimento su Android per android.app.UiAutomation.getWindowContentFrameStats.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a

Vedi anche