I'm using the Ubuntu SDK to develop a QML app that runs both on the desktop and on mobile devices. Depending on where it's running on the desktop or on a device, certain behaviours should be different.
What's the recommended way of programmatically detecting whether an app is running on the desktop or on a mobile device?