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:1105 |
参数列表
view
View The target view
apply
调用策略方法
meta | description |
---|---|
返回 | Object |
定义于 | cocos2d/core/platform/CCView.js:1115 |
参数列表
postApply
策略调用之后的操作
meta | description |
---|---|
定义于 | cocos2d/core/platform/CCView.js:1129 |
参数列表
view
View The target view