語言

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)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於