The device API (sap.ui.Device) is an API which provides information
about device specifics, like the operating system along with its version, the browser and
browser version, screen size, current orientation and support for specific features like
touch event support, orientation change and so on.
SAPUI5 comes with several
controls which are already able to react to the available screen real estate and resolution
by themselves. Some require particular properties to be set, and with some, everything just
works out of the box.
The devices used to run apps that are developed with SAPUI5 run on various different
operating systems and have very different screen sizes. SAPUI5 contains different
content densities for certain controls that allow your app to adapt to the device in
question, allowing you to display larger controls for touch-enabled devices and a smaller,
more compact design for devices that are operated by mouse.