Partager via


SurfaceControl.TrustedPresentationThresholds(Single, Single, Int32) Constructor

Definition

Creates a TrustedPresentationThresholds that's used when calling Transaction#setTrustedPresentationCallback(SurfaceControl, TrustedPresentationThresholds, Executor, Consumer)

[Android.Runtime.Register(".ctor", "(FFI)V", "", ApiSince=34)]
public TrustedPresentationThresholds (float minAlpha, float minFractionRendered, int stabilityRequirementMs);
[<Android.Runtime.Register(".ctor", "(FFI)V", "", ApiSince=34)>]
new Android.Views.SurfaceControl.TrustedPresentationThresholds : single * single * int -> Android.Views.SurfaceControl.TrustedPresentationThresholds

Parameters

minAlpha
Single

The min alpha the SurfaceControl is required to have to be considered inside the threshold.

minFractionRendered
Single

The min fraction of the SurfaceControl that was resented to the user to be considered inside the threshold.

stabilityRequirementMs
Int32

The time in milliseconds required for the SurfaceControl to be in the threshold.

Attributes

Remarks

Creates a TrustedPresentationThresholds that's used when calling Transaction#setTrustedPresentationCallback(SurfaceControl, TrustedPresentationThresholds, Executor, Consumer)

Java documentation for android.view.SurfaceControl.TrustedPresentationThresholds.SurfaceControl$TrustedPresentationThresholds(float, float, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to