SurfaceView.SurfaceControl 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個 SurfaceControl,可用於將 Surfaces 的子層化到 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,可用於將 Surfaces 的子層化到 SurfaceView。
請注意,這個 SurfaceControl 實際上是唯讀的。 它唯一明確定義的用途是將 SurfaceControl 作為應用程式層級結構的父節點。 SurfaceControl 的其他屬性,例如其位置,隨時可被 SurfaceView 改變,從而覆蓋應用程式的請求。 除非重新父化子 SurfaceControl,否則不要對此 SurfaceControl 套用任何應用程式 SurfaceControl.Transaction 。 請參閱:SurfaceControl.Transaction#reparent。
Java 文件 android.view.SurfaceView.getSurfaceControl()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。