public interface TextureHolderListener
TextureHolder objects.
You need to implement this API on your own.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onTextureHolderAvailable(TextureHolder holder,
int width,
int height) |
Callback invoked when a
TextureHolder is created. |
void |
onTextureHolderDestroyed(TextureHolder holder) |
Callback invoked when a
TextureHolder is destroyed. |
void |
onTextureHolderSizeChanged(TextureHolder holder,
int width,
int height) |
Callback invoked when the size of a
TextureHolder changes. |
void |
onTextureHolderUpdated(TextureHolder holder) |
Callback invoked when a
TextureHolder is updated. |
void onTextureHolderAvailable(TextureHolder holder, int width, int height)
TextureHolder is created.holder - Indicates the TextureHolder created.width - Indicates the width of the texture.height - Indicates the height of the texture.void onTextureHolderSizeChanged(TextureHolder holder, int width, int height)
TextureHolder changes.holder - Indicates the TextureHolder whose size is changed.width - Indicates the width of the texture.height - Indicates the height of the texture.void onTextureHolderDestroyed(TextureHolder holder)
TextureHolder is destroyed.holder - Indicates the TextureHolder to destroy.void onTextureHolderUpdated(TextureHolder holder)
TextureHolder is updated.holder - Indicates the TextureHolder updated.