Skip to content

Most visited

Recently visited

navigation

RSTextureView | Android Developers

to top
Android APIs
public class

RSTextureView

extends TextureView
implements TextureView.SurfaceTextureListener
java.lang.Object
   ↳ android.view.View
     ↳ android.view.TextureView
       ↳ android.renderscript.RSTextureView

This class was deprecated in API level 16.
in API 16 The Texture View for a graphics renderscript (RenderScriptGL) to draw on.

Summary

[Expand]
Inherited XML Attributes
From class android.view.View
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
RSTextureView(Context context)
This constructor was deprecated in API level 16. in API 16 Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.
RSTextureView(Context context, AttributeSet attrs)
This constructor was deprecated in API level 16. in API 16 Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.
Public Methods
RenderScriptGL createRenderScriptGL(RenderScriptGL.SurfaceConfig sc)
This method was deprecated in API level 16. in API 16 Create a new RenderScriptGL object and attach it to the TextureView if present.
void destroyRenderScriptGL()
This method was deprecated in API level 16. in API 16 Destroy the RenderScriptGL object associated with this TextureView.
RenderScriptGL getRenderScriptGL()
This method was deprecated in API level 16. in API 16 Returns the previously set RenderScriptGL object.
void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height)
This method was deprecated in API level 16. in API 16
boolean onSurfaceTextureDestroyed(SurfaceTexture surface)
This method was deprecated in API level 16. in API 16
void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height)
This method was deprecated in API level 16. in API 16
void onSurfaceTextureUpdated(SurfaceTexture surface)
This method was deprecated in API level 16. in API 16
void pause()
This method was deprecated in API level 16. in API 16 Inform the view that the activity is paused. The owner of this view must call this method when the activity is paused. Calling this method will pause the rendering thread. Must not be called before a renderer has been set.
void resume()
This method was deprecated in API level 16. in API 16 Inform the view that the activity is resumed. The owner of this view must call this method when the activity is resumed. Calling this method will recreate the OpenGL display and resume the rendering thread. Must not be called before a renderer has been set.
void setRenderScriptGL(RenderScriptGL rs)
This method was deprecated in API level 16. in API 16 Set a new RenderScriptGL object. This also will attach the new object to the TextureView if present.
[Expand]
Inherited Methods
From class android.view.TextureView
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.TextureView.SurfaceTextureListener
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public RSTextureView (Context context)

Added in API level 14

This constructor was deprecated in API level 16.
in API 16 Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.

public RSTextureView (Context context, AttributeSet attrs)

Added in API level 14

This constructor was deprecated in API level 16.
in API 16 Standard View constructor. In order to render something, you must call setRenderer(GLSurfaceView.Renderer) to register a renderer.

Public Methods

public RenderScriptGL createRenderScriptGL (RenderScriptGL.SurfaceConfig sc)

Added in API level 14

This method was deprecated in API level 16.
in API 16 Create a new RenderScriptGL object and attach it to the TextureView if present.

Parameters
sc The RS surface config to create.
Returns
  • RenderScriptGL The new object created.

public void destroyRenderScriptGL ()

Added in API level 14

This method was deprecated in API level 16.
in API 16 Destroy the RenderScriptGL object associated with this TextureView.

public RenderScriptGL getRenderScriptGL ()

Added in API level 14

This method was deprecated in API level 16.
in API 16 Returns the previously set RenderScriptGL object.

Returns
  • RenderScriptGL

public void onSurfaceTextureAvailable (SurfaceTexture surface, int width, int height)

Added in API level 14

This method was deprecated in API level 16.
in API 16

Invoked when a TextureView's SurfaceTexture is ready for use.

Parameters
surface The surface returned by getSurfaceTexture()
width The width of the surface
height The height of the surface

public boolean onSurfaceTextureDestroyed (SurfaceTexture surface)

Added in API level 14

This method was deprecated in API level 16.
in API 16

Invoked when the specified SurfaceTexture is about to be destroyed. If returns true, no rendering should happen inside the surface texture after this method is invoked. If returns false, the client needs to call release(). Most applications should return true.

Parameters
surface The surface about to be destroyed

public void onSurfaceTextureSizeChanged (SurfaceTexture surface, int width, int height)

Added in API level 14

This method was deprecated in API level 16.
in API 16

Invoked when the SurfaceTexture's buffers size changed.

Parameters
surface The surface returned by getSurfaceTexture()
width The new width of the surface
height The new height of the surface

public void onSurfaceTextureUpdated (SurfaceTexture surface)

Added in API level 14

This method was deprecated in API level 16.
in API 16

Invoked when the specified SurfaceTexture is updated through updateTexImage().

Parameters
surface The surface just updated

public void pause ()

Added in API level 14

This method was deprecated in API level 16.
in API 16 Inform the view that the activity is paused. The owner of this view must call this method when the activity is paused. Calling this method will pause the rendering thread. Must not be called before a renderer has been set.

public void resume ()

Added in API level 14

This method was deprecated in API level 16.
in API 16 Inform the view that the activity is resumed. The owner of this view must call this method when the activity is resumed. Calling this method will recreate the OpenGL display and resume the rendering thread. Must not be called before a renderer has been set.

public void setRenderScriptGL (RenderScriptGL rs)

Added in API level 14

This method was deprecated in API level 16.
in API 16 Set a new RenderScriptGL object. This also will attach the new object to the TextureView if present.

Parameters
rs The new RS object.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.