TextureView.SurfaceTexture 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回 SurfaceTexture
此视图使用的视图。 - 或 - 设置 SurfaceTexture
要使用的此视图。
public virtual Android.Graphics.SurfaceTexture? SurfaceTexture { [Android.Runtime.Register("getSurfaceTexture", "()Landroid/graphics/SurfaceTexture;", "GetGetSurfaceTextureHandler")] get; [Android.Runtime.Register("setSurfaceTexture", "(Landroid/graphics/SurfaceTexture;)V", "GetSetSurfaceTexture_Landroid_graphics_SurfaceTexture_Handler")] set; }
[<get: Android.Runtime.Register("getSurfaceTexture", "()Landroid/graphics/SurfaceTexture;", "GetGetSurfaceTextureHandler")>]
[<set: Android.Runtime.Register("setSurfaceTexture", "(Landroid/graphics/SurfaceTexture;)V", "GetSetSurfaceTexture_Landroid_graphics_SurfaceTexture_Handler")>]
member this.SurfaceTexture : Android.Graphics.SurfaceTexture with get, set
属性值
- 属性
注解
属性 getter 文档:
返回 SurfaceTexture
此视图使用的视图。 如果视图未附加到窗口或尚未初始化表面纹理,此方法可能会返回 null。
适用于 . 的 android.view.TextureView.getSurfaceTexture()
Java 文档
属性 setter 文档:
设置 SurfaceTexture
要使用的此视图。 如果此视图已使用 a SurfaceTexture
,它将立即发布,不再可用。 回调SurfaceTextureListener#onSurfaceTextureDestroyed
不是<<>为上一SurfaceTexture
个调用的 b/b 。> 同样,SurfaceTextureListener#onSurfaceTextureAvailable
为传递给 setSurfaceTexture 的SurfaceTexture
传递调用回调<>不是</b>。
SurfaceTexture
在调用此方法之前,必须从所有 OpenGL ES 上下文中分离对象。
适用于 . 的 android.view.TextureView.setSurfaceTexture(android.graphics.SurfaceTexture)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。