Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

ZENMobile.ZenASketch

class ZENMobile.ZenASketch extends %ZEN.Mobile.mobilePage

Created using the page template: Default

Method Inventory

Parameters

parameter APPLICATION = ZENMobile.TestApplication;
Application this page belongs to.
parameter DEFAULTPREVENTGESTURES = 1;
Turn off scroll and zoom defaults
parameter DOMAIN = ZENTEST;
Inherited description: Set this to the correct domain.
parameter PAGENAME = Zen A Sketch;
Inherited description: Name of this page.

Methods

clientmethod clearCanvas() [ Language = javascript ]
Clear the screen
clientmethod initCanvas() [ Language = javascript ]
Initialize the canvas and save certain values for faster processing later
clientmethod ondevicemotionHandler(event) [ Language = javascript ]
Watch for a simple, face down shake to clear the screen.
clientmethod onloadHandler() [ Language = javascript ]
Inherited description: This client event, if present, is fired when the page is loaded.
clientmethod ontouchmoveHandler(event) [ Language = javascript ]
Process (potentially simultaneous) gestures on the knobs. Because both 'knobs' operate independently but in parallel, it's actually easier to process one combined event stream than to break out the knobs into separate widgets (where the simultaneous nature of their updates might be lost in an event queue. In effect, this is the diffeence between using both controls in parallel to make a diagonal line, versus using them serially to create a stair-stepping one.
clientmethod ontouchstartHandler(event) [ Language = javascript ]
Inherited description: This method may be redefined to specify custom handling of touch start events
clientmethod refreshCanvas() [ Language = javascript ]
Initialize and or refresh the canvas as needed
clientmethod updateCanvas() [ Language = javascript ]
Periodically update the canvas based on the movement deltas registered since the last update.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab