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

String

Unit
writeToParcel(parcel: Parcel, flags: Int)

Inherited functions
Properties
static Parcelable.Creator<WindowAnimationFrameStats!>

Public methods

describeContents

Added in API level 21
fun describeContents(): Int

Deprecated: Deprecated in Java.

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

toString

Added in API level 21
fun toString(): String

Deprecated: Deprecated in Java.

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.

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 android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

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

Deprecated: Deprecated in Java.