Added in API level 21
Deprecated in API level 34

WindowAnimationFrameStats


class WindowAnimationFrameStats : FrameStats, Parcelable
kotlin.Any
   ↳ android.view.FrameStats
   ↳ android.view.WindowAnimationFrameStats

This class contains window animation frame statistics. For example, a window animation is usually performed when the application is transitioning from one activity to another. The frame statistics are a snapshot for the time interval from getStartTimeNano() to getEndTimeNano().

The key idea is that in order to provide a smooth user experience the system should run window animations at a specific time interval obtained by calling getRefreshPeriodNano(). If the system does not render a frame every refresh period the user will see irregular window transitions. The time when the frame was actually presented on the display by calling getFramePresentedTimeNano(int).

Summary

Inherited constants
Public methods
Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

String

Returns a string representation of the object.

Unit
writeToParcel(parcel: Parcel, flags: Int)

Flatten this object in to a Parcel.

Inherited functions
Properties
static Parcelable.Creator<WindowAnimationFrameStats!>

Public methods

describeContents

Added in API level 21
fun describeContents(): Int

Deprecated: Deprecated in Java.

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

toString

Added in API level 21
fun toString(): String

Deprecated: Deprecated in Java.

Returns a string representation of the object.

Return
String a string representation of the object.

writeToParcel

Added in API level 21
fun writeToParcel(
    parcel: Parcel,
    flags: Int
): Unit

Deprecated: Deprecated in Java.

Flatten this object in to a Parcel.

Parameters
dest The Parcel in which the object should be written.
This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:

Properties

CREATOR

Added in API level 21
static val CREATOR: Parcelable.Creator<WindowAnimationFrameStats!>

Deprecated: Deprecated in Java.