Android Guides | Samples

Android.Views.WindowContentFrameStats Class

This class contains window content frame statistics.

See Also: WindowContentFrameStats

Syntax

[Android.Runtime.Register("android/view/WindowContentFrameStats", DoNotGenerateAcw=true)]
public sealed class WindowContentFrameStats : FrameStats, IParcelable, IDisposable

Remarks

This class contains window content frame statistics. For example, a window content is rendred in frames when a view is scrolled. The frame statistics are a snapshot for the time interval from FrameStats.StartTimeNano to FrameStats.EndTimeNano.

The key idea is that in order to provide a smooth user experience an application has to draw a frame at a specific time interval obtained by calling FrameStats.RefreshPeriodNano. If the application does not render a frame every refresh period the user will see irregular UI transitions.

An application posts a frame for presentation by synchronously rendering its contents in a buffer which is then posted or posting a buffer to which the application is asychronously rendering the content via GL. After the frame is posted and rendered (potentially asynchronosly) it is presented to the user. The time a frame was posted can be obtained via WindowContentFrameStats.GetFramePostedTimeNano(Int32), the time a frame content was rendered and ready for dsiplay (GL case) via WindowContentFrameStats.GetFrameReadyTimeNano(Int32), and the time a frame was presented on the screen via FrameStats.GetFramePresentedTimeNano(Int32).

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Views.WindowContentFrameStats are listed below.

See Also: FrameStats

Public Properties

[read-only]
static
CreatorIParcelableCreator.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
GetFramePostedTimeNano(Int32) : Int64
Get the time a frame at a given index was posted by the producer (e.g. the application).
GetFrameReadyTimeNano(Int32) : Int64
Get the time a frame at a given index was ready for presentation.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.