The intel.xdk.device.orientation.change event passes an object that includes information about the device's orientation. Valid values are expressed in ninety degree increments (i.e. -90,0,90,180).
Alter the orientation of the simulated device in the XDK using the Devices panel pictured here.
This sample application has been tested on a variety of iOS and Android devices.