TrustedPresentationThresholds
classTrustedPresentationThresholds
kotlin.Any | |
↳ | android.view.SurfaceControl.TrustedPresentationThresholds |
Threshold values that are sent with Transaction.setTrustedPresentationCallback(SurfaceControl,
Summary
Public constructors | |
---|---|
TrustedPresentationThresholds(minAlpha: Float, minFractionRendered: Float, stabilityRequirementMs: Int) Creates a TrustedPresentationThresholds that's used when calling |
Public constructors
TrustedPresentationThresholds
Added in API level 34
TrustedPresentationThresholds(
minAlpha: Float,
minFractionRendered: Float,
stabilityRequirementMs: Int)
Creates a TrustedPresentationThresholds that's used when calling Transaction.setTrustedPresentationCallback(SurfaceControl,
Parameters | |
---|---|
minAlpha |
Float: The min alpha the SurfaceControl is required to have to be considered inside the threshold. Value is between 0f and 1f inclusive |
minFractionRendered |
Float: The min fraction of the SurfaceControl 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 SurfaceControl to be in the threshold. Value is 1 or greater |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
If threshold values are invalid. |