TextureView.SurfaceTexture 属性

定义

返回 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 属性许可证中所述的术语使用。

适用于

另请参阅