android.view.TextureView.SurfaceTextureListener |
This listener can be used to be notified when the surface texture associated with this texture view is available.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked when a
TextureView 's SurfaceTexture is ready for use. | |||||||||||
Invoked when the specified
SurfaceTexture is about to be destroyed. | |||||||||||
Invoked when the
SurfaceTexture 's buffers size changed. | |||||||||||
Invoked when the specified
SurfaceTexture is updated through
updateTexImage() . |
Invoked when a TextureView
's SurfaceTexture is ready for use.
surface | The surface returned by
getSurfaceTexture() |
---|---|
width | The width of the surface |
height | The height of the surface |
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.
surface | The surface about to be destroyed |
---|
Invoked when the SurfaceTexture
's buffers size changed.
surface | The surface returned by
getSurfaceTexture() |
---|---|
width | The new width of the surface |
height | The new height of the surface |
Invoked when the specified SurfaceTexture
is updated through
updateTexImage()
.
surface | The surface just updated |
---|