Query the dimentions of the user's main screen.
Returns an object with the following structure:
// Let the user know how big his desktop is. var size = Ion.ui.desktopSize; alert('Your desktop is ' + size.width + 'px wide and ' + size.height + 'px tall!');
A static reference to the application's main window. Every application has an initial window that is automatically instantiated. When all windows of an application are closed, the application will exit.
var win = Ion.ui.mainWindow; // Size the window to be exactly 1024x768, and then center it on the screen. win.setDimensions(1024, 768); win.center();