execute Method

JavaScript that is passed to the execute method and will be forwarded to the Accelerated Canvas App Game Interface execution context for execution there

intel.xdk.canvas.execute(javascript);

Description:

Javascript that is passed to the execute method and will be forwarded to the Accelerated Canvas App Game Interface execution context for execution there. In the exmaple below, the 'jump' function would be executed in the Accelerated Canvas App Game Interface context.

Available Platforms:

Parameters:

javascript: Any JavaScript calls that should be executed in the Accelerated Canvas App Game Interface context

Example:


<example>intel.xdk.canvas.execute('jump()');</example>
                        
For more complete information about compiler optimizations, see our Optimization Notice.