ContentStrategy 类型
模块: _decorator父模块: cc
cc.ContentStrategy class is the root strategy class of content's scale strategy,it controls the behavior of how to scale the scene and setup the viewport for the game
索引
方法
Details
方法
preApply
策略应用前的操作
meta | description |
---|---|
定义于 | cocos2d/core/platform/CCView.js:1135 |
参数列表
view
View The target view
apply
调用策略方法
meta | description |
---|---|
返回 | Object |
定义于 | cocos2d/core/platform/CCView.js:1145 |
参数列表
postApply
策略调用之后的操作
meta | description |
---|---|
定义于 | cocos2d/core/platform/CCView.js:1159 |
参数列表
view
View The target view