TextureView.SurfaceTexture Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the SurfaceTexture used by this view. -or- Set the SurfaceTexture for this view to use.
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
Property Value
- Attributes
Remarks
Property getter documentation:
Returns the SurfaceTexture used by this view. This method may return null if the view is not attached to a window or if the surface texture has not been initialized yet.
Java documentation for android.view.TextureView.getSurfaceTexture().
Property setter documentation:
Set the SurfaceTexture for this view to use. If a SurfaceTexture is already being used by this view, it is immediately released and not usable any more. The SurfaceTextureListener#onSurfaceTextureDestroyed callback is <b>not</b> called for the previous SurfaceTexture. Similarly, the SurfaceTextureListener#onSurfaceTextureAvailable callback is <b>not</b> called for the SurfaceTexture passed to setSurfaceTexture.
The SurfaceTexture object must be detached from all OpenGL ES contexts prior to calling this method.
Java documentation for android.view.TextureView.setSurfaceTexture(android.graphics.SurfaceTexture).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.