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 | |
| Float |
Get the value of dp per second |
| Float |
Get the value of frame per second |
| Int |
hashCode() |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<FrameRateVelocityPoint!> | |
Public constructors
Public methods
describeContents
fun describeContents(): Int
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!>