SurfaceHolder.Callback
来源:互联网 发布:中万网络靠谱吗 编辑:程序博客网 时间:2024/06/05 10:16
转载自:http://blog.csdn.net/cwx01perfect/article/details/7436459
Class Overview
A client may implement this interface to receive information about changes to the surface. When used with a SurfaceView
, the Surface being held is only available between calls tosurfaceCreated(SurfaceHolder)
and surfaceDestroyed(SurfaceHolder)
. The Callback is set with SurfaceHolder.addCallback
method.
类概述
一个类可能实现这个接口来接受surface改变的信息。当使用SurfaceView的时候,那么Surface仅仅在surfaceCreated(SurfaceHolder)
and surfaceDestroyed(SurfaceHolder)
之间是可以被使用的。Callback是通过SurfaceHolder.addCallback
方法添加到SurfaceHolder当中的。
public abstract void surfaceChanged (SurfaceHolder holder, int format, int width, int height)
This is called immediately after any structural changes (format or size) have been made to the surface. You should at this point update the imagery in the surface. This method is always called at least once, after surfaceCreated(SurfaceHolder)
.
Parameters
surfaceCreated(SurfaceHolder)
.调用之后。public abstract void surfaceCreated (SurfaceHolder holder)
This is called immediately after the surface is first created. Implementations of this should start up whatever rendering code they desire. Note that only one thread can ever draw into a Surface
, so you should not draw into the Surface here if your normal rendering will be in another thread.
Parameters
public abstract void surfaceDestroyed (SurfaceHolder holder)
This is called immediately before a surface is being destroyed. After returning from this call, you should no longer try to access this surface. If you have a rendering thread that directly accesses the surface, you must ensure that thread is no longer touching the Surface before returning from this function.
Parameters
- SurfaceHolder.Callback
- SurfaceHolder.Callback
- SurfaceHolder.Callback
- SurfaceHolder.Callback
- SurfaceHolder.Callback
- SurfaceHolder.Callback
- SurfaceHolder.Callback
- SurfaceHolder.Callback
- SurfaceHolder.Callback
- SurfaceView,SurfaceHolder,SurfaceHolder.CallBack
- SurfaceView,SurfaceHolder,SurfaceHolder.CallBack
- SurfaceView,SurfaceHolder,SurfaceHolder.CallBack
- SurfaceView,SurfaceHolder,SurfaceHolder.CallBack
- SurfaceView,SurfaceHolder,SurfaceHolder.CallBack用法!
- SurfaceView,SurfaceHolder,SurfaceHolder.CallBack知识
- surfaceSurface、SurfaceHolder及SurfaceHolder.Callback
- SurfaceView、SurfaceHolder及SurfaceHolder.Callback
- 剖析SurfaceView ,Callback,SurfaceHolder
- 配置虚拟主机目录
- Day27、文件夹内容的读取、软连接和硬链接文件、fctl文件锁的操作、Mycp.c
- 《ReactNative入坑记录(一)ReactNative介绍及环境搭建》
- java基础-持有对象
- 拦截器
- SurfaceHolder.Callback
- snoopy类
- How to Write a Git Commit Message
- Java 学习笔记(0x06) 权限控制
- STL中的链表
- 简单数据采集(http://blog.jobbole.com/tag/php/)
- 【JZOJ4743】【NOIP2016提高A组模拟9.2】积木
- java基础-初始化
- java基础-多态