次の方法で共有


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

の Java ドキュメント android.app.UiAutomation.getWindowContentFrameStats(int)

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

適用対象

こちらもご覧ください