Android.Graphics.SurfaceTexture.DetachFromGLContext Method
Detach the SurfaceTexture from the OpenGL ES context that owns the OpenGL ES texture object.

Syntax

[Android.Runtime.Register("detachFromGLContext", "()V", "GetDetachFromGLContextHandler")]
public virtual void DetachFromGLContext ()

Remarks

Detach the SurfaceTexture from the OpenGL ES context that owns the OpenGL ES texture object. This call must be made with the OpenGL ES context current on the calling thread. The OpenGL ES texture object will be deleted as a result of this call. After calling this method all calls to SurfaceTexture.UpdateTexImage will throw an Java.Lang.IllegalStateException until a successful call to SurfaceTexture.AttachToGLContext(int) is made. This can be used to access the SurfaceTexture image contents from multiple OpenGL ES contexts. Note, however, that the image contents are only accessible from one OpenGL ES context at a time.

[Android Documentation]

Requirements

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