Language

UiAutomation.GetWindowContentFrameStats(Int32) メソッド

定義

特定のウィンドウのフレーム統計を取得します。

[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

パラメーター

windowId
Int32

ウィンドウ ID。

戻り値

ウィンドウ フレームの統計情報。ウィンドウが存在しない場合は null。

属性

注釈

特定のウィンドウのフレーム統計を取得します。 これらの統計情報には、最近レンダリングされたコンテンツ フレームに関する情報が含まれます。 一般的な使用方法では、clearWindowContentFrameStats(int) を使用してウィンドウ フレームの統計情報をクリアし、UI との対話を行い、最後にこのメソッドを呼び出してウィンドウ フレームの統計情報を取得する必要があります。

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

スロー: IllegalStateException アクセシビリティ サブシステムへの接続が確立されていない場合。

android.app.UiAutomation.getWindowContentFrameStatsの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

関連項目