Android.Views.TextureView.SurfaceTexture Property
Returns the Android.Graphics.SurfaceTexture used by this view.

Syntax

[get: Android.Runtime.Register("getSurfaceTexture", "()Landroid/graphics/SurfaceTexture;", "GetGetSurfaceTextureHandler")]
[set: Android.Runtime.Register("setSurfaceTexture", "(Landroid/graphics/SurfaceTexture;)V", "GetSetSurfaceTexture_Landroid_graphics_SurfaceTexture_Handler")]
public virtual Android.Graphics.SurfaceTexture SurfaceTexture { get; set; }

See Also

TextureView.IsAvailable
Android.Graphics.SurfaceTexture.DetachFromGLContext

Value

Documentation for this section has not yet been entered.

Remarks

Get method documentation [Android Documentation]

Returns the Android.Graphics.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.

Set method documentation [Android Documentation]

Set the Android.Graphics.SurfaceTexture for this view to use. If a Android.Graphics.SurfaceTexture is already being used by this view, it is immediately released and not be usable any more. The NoType:android/view/TextureView$SurfaceTextureListener;Href=../../../reference/android/view/TextureView.SurfaceTextureListener.html#onSurfaceTextureDestroyed(android.graphics.SurfaceTexture) callback is not called for the previous Android.Graphics.SurfaceTexture. Similarly, the NoType:android/view/TextureView$SurfaceTextureListener;Href=../../../reference/android/view/TextureView.SurfaceTextureListener.html#onSurfaceTextureAvailable(android.graphics.SurfaceTexture, int, int) callback is not called for the Android.Graphics.SurfaceTexture passed to setSurfaceTexture. The Android.Graphics.SurfaceTexture object must be detached from all OpenGL ES contexts prior to calling this method.

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14