ContainerStrategy Class

Module: _decorator Parent Module: cc

cc.ContainerStrategy class is the root strategy class of container's scale strategy, it controls the behavior of how to scale the cc.container and cc.game.canvas object

Index

Methods
  • preApply Manipulation before appling the strategy
  • apply Function to apply this strategy
  • postApply Manipulation after applying the strategy

Details

Methods

preApply

Manipulation before appling the strategy

meta description
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCView.js:1039
Parameters
  • view View The target view
apply

Function to apply this strategy

meta description
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCView.js:1047
Parameters
postApply

Manipulation after applying the strategy

meta description
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCView.js:1056
Parameters
  • view View The target view

results matching ""

    No results matching ""