Share via


FrameMetrics.FirstDrawFrame Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.FrameMetricsId enum directly instead of this field.

Metric identifier for a boolean value determining whether this frame was the first to draw in a new Window layout.

[Android.Runtime.Register("FIRST_DRAW_FRAME", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.FrameMetricsId enum directly instead of this field.", true)]
public const Android.Views.FrameMetricsId FirstDrawFrame = 9;
[<Android.Runtime.Register("FIRST_DRAW_FRAME", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.FrameMetricsId enum directly instead of this field.", true)>]
val mutable FirstDrawFrame : Android.Views.FrameMetricsId

Field Value

Value = 9
Attributes

Remarks

Metric identifier for a boolean value determining whether this frame was the first to draw in a new Window layout.

#getMetric(int) will return 0 for false, 1 for true.

First draw frames are expected to be slow and should usually be exempt from display jank calculations as they do not cause skips in animations and are usually hidden by window animations or other tricks.

Java documentation for android.view.FrameMetrics.FIRST_DRAW_FRAME.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to