TrustedPresentationThresholds | API reference | Android Developers (original) (raw)
class TrustedPresentationThresholds : Parcelable
Threshold values that are sent with android.view.WindowManager#registerTrustedPresentationListener(IBinder, * TrustedPresentationThresholds, Executor, Consumer)
Summary
Inherited constants |
---|
From class Parcelable Int CONTENTS_FILE_DESCRIPTOR Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor. Int PARCELABLE_WRITE_RETURN_VALUE Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point. |
Public constructors |
---|
TrustedPresentationThresholds(minAlpha: Float, minFractionRendered: Float, stabilityRequirementMs: Int) Creates a new TrustedPresentationThresholds. |
Public methods | |
---|---|
Int | describeContents() |
Boolean | equals(other: Any?) |
Float | getMinAlpha() The min alpha the Window is required to have to be considered inside the threshold. |
Float | getMinFractionRendered() The min fraction of the Window that was presented to the user to be considered inside the threshold. |
Int | getStabilityRequirementMillis() The time in milliseconds required for the Window to be in the threshold. |
Int | hashCode() |
String | toString() |
Unit | writeToParcel(dest: Parcel, flags: Int) |
Properties | |
---|---|
static Parcelable.Creator<TrustedPresentationThresholds!> | CREATOR |
Public constructors
TrustedPresentationThresholds
TrustedPresentationThresholds(
minAlpha: Float,
minFractionRendered: Float,
stabilityRequirementMs: Int)
Creates a new TrustedPresentationThresholds.
Parameters | |
---|---|
minAlpha | Float: The min alpha the Window is required to have to be considered inside the threshold. Value is between 0f and 1f inclusive |
minFractionRendered | Float: The min fraction of the Window that was presented to the user to be considered inside the threshold. Value is between 0f and 1f inclusive |
stabilityRequirementMs | Int: The time in milliseconds required for the Window to be in the threshold. Value is 1 or greater |
Public methods
equals
fun equals(other: Any?): Boolean
Parameters | |
---|---|
obj | the reference object with which to compare. |
Return | |
---|---|
Boolean | true if this object is the same as the obj argument; false otherwise. |
getMinAlpha
fun getMinAlpha(): Float
The min alpha the Window is required to have to be considered inside the threshold.
Return | |
---|---|
Float | Value is between 0f and 1f inclusive |
getMinFractionRendered
fun getMinFractionRendered(): Float
The min fraction of the Window that was presented to the user to be considered inside the threshold.
Return | |
---|---|
Float | Value is between 0f and 1f inclusive |
getStabilityRequirementMillis
fun getStabilityRequirementMillis(): Int
The time in milliseconds required for the Window to be in the threshold.
Return | |
---|---|
Int | Value is 1 or greater |
hashCode
fun hashCode(): Int
Return | |
---|---|
Int | a hash code value for this object. |
toString
fun toString(): String
Return | |
---|---|
String | a string representation of the object. |