top

CAPH.APP.EVENT.ENGINEEVENTHANDLER

EngineEventHandler is a small class that provides event handling functions for the engine. Main APIs of EngineEventHandler are 'init' and 'resize.' Using init method, a user can initialize EngineEventHandler instance. Using resize method, a user can register a 'resize' event listener to window's resize event.


Constructor

EngineEventHandler

Description
Construct an EngineEventHandler
Emulator SupportY
SDK ConstraintNone
Example
var EngineEventHandler = caph.app.event.EngineEventHandler;
var engineeventhandler = new EngineEventHandler();

Methods

EngineEventHandler

Description
(Constructor) Construct an EngineEventHandler
Parameters
■Void
Return■Object
  - Object, an instance of an EngineEventHandler
Emulator SupportY
SDK Constraintnone
Example
var EngineEventHandler = caph.app.event.EngineEventHandler;
var engineeventhandler = new EngineEventHandler();

resize

Description
Register a 'resize' event listener to window's resize event.
Parameters
■basePage
  - BasePage
  - A BasePage of concern
Return■Void
Emulator SupportY
SDK Constraintnone
Example
var EngineEventHandler = caph.app.event.EngineEventHandler;
var engineeventhandler = new EngineEventHandler();

var basePage = new caph.wui.engine.rendering.BasePage;
engineventhandler.resize(basePage);

init

Description
Initialize an EngineEventHandler
Parameters
■Void
Return■Void
Emulator SupportY
SDK Constraintnone
Example
var EngineEventHandler = caph.app.event.EngineEventHandler;
var engineeventhandler = new EngineEventHandler();
engineventhandler.init();