FrameRateVelocityPoint


class FrameRateVelocityPoint : Parcelable
kotlin.Any
   ↳ android.view.FrameRateVelocityPoint

Contains the frame rate / velocity values. The velocity value can be used as a threshold value to determine a feasible frame rate For example, if the velocity is greater than 300 dp (density-independent pixels) per second, then we need frame rate to be 120 to ensure the smoothness.

Summary

Inherited constants
Public constructors
FrameRateVelocityPoint(framePerSecond: Float, dpPerSecond: Float)

Public methods
Int

Boolean
equals(other: Any?)

Float

Get the value of dp per second

Float

Get the value of frame per second

Int

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<FrameRateVelocityPoint!>

Public constructors

FrameRateVelocityPoint

FrameRateVelocityPoint(
    framePerSecond: Float,
    dpPerSecond: Float)

Public methods

describeContents

fun describeContents(): Int

equals

fun equals(other: Any?): Boolean

getDpPerSecond

fun getDpPerSecond(): Float

Get the value of dp per second

getFramePerSecond

fun getFramePerSecond(): Float

Get the value of frame per second

hashCode

fun hashCode(): Int

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: 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

static val CREATOR: Parcelable.Creator<FrameRateVelocityPoint!>