共用方式為


SurfaceView.SurfaceControl 屬性

定義

傳回 SurfaceControl,可用於將 Surface 父系至這個 SurfaceView。

public virtual Android.Views.SurfaceControl? SurfaceControl { [Android.Runtime.Register("getSurfaceControl", "()Landroid/view/SurfaceControl;", "GetGetSurfaceControlHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getSurfaceControl", "()Landroid/view/SurfaceControl;", "GetGetSurfaceControlHandler", ApiSince=29)>]
member this.SurfaceControl : Android.Views.SurfaceControl

屬性值

這個 SurfaceView 的 SurfaceControl。

屬性

備註

傳回 SurfaceControl,可用於將 Surface 父系至這個 SurfaceView。

請注意,此 SurfaceControl 實際上是唯讀的。 其唯一定義完善的使用方式是使用 SurfaceControl 做為應用程式 SurfaceControls 階層的父系。 SurfaceControl 的其他所有屬性,例如其位置,隨時可能會由 SurfaceView 變動,這會覆寫應用程式所要求的內容。 除了重新父系子 SurfaceControls 以外,請勿將任何 SurfaceControl.Transaction 套用至此 SurfaceControl。 請參閱:SurfaceControl.Transaction#reparent

android.view.SurfaceView.getSurfaceControl()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於