int64 CreateViews (string, int[], string)

Creates touch surfaces for sprites to attach.

Security

Trust Level Required: Full Trust

Parameters

Name Description
callbackName string
The name of a callback on your page that you would like KioWare to call when complete.
xywhArr int[]
An array consisting of desired touch surface locations and sizes.
devName (Optional) string
Optional device name from the Config Tool. Default value: null.

Return

The queue id number, or 0.

Remarks

Provided the given xywhArr locations and sizes, creates touch surfaces for sprites to attach. For instance, (0,0,10,90, 11,0,10,90) would create two views that are side-by-side.

Examples


if(!KioTouchDevice.CreateViews(null, [0,0,10,90, 11,0,10,90]))
	alert('Failed');

Requirements

KioWare for Windows version 8.18 or greater.