语言

SurfaceControl.TrustedPresentationThresholds(Single, Single, Int32) 构造函数

定义

创建在调用时使用的 TrustedPresentationThresholds 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

参数

minAlpha
Single

必须考虑阈值内的最小 alpha SurfaceControl 值。

minFractionRendered
Single

提供给要考虑在阈值内的用户的 SurfaceControl 的最小分数。

stabilityRequirementMs
Int32

阈值所需的 SurfaceControl 时间(以毫秒为单位)。

属性

注解

创建在调用时使用的 TrustedPresentationThresholds Transaction#setTrustedPresentationCallback(SurfaceControl, TrustedPresentationThresholds, Executor, Consumer)

Java文档android.view.SurfaceControl.TrustedPresentationThresholds.TrustedPresentationThresholds(float, float, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于