Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 3.59 KB

Adapting_to_Operating_Systems_And_Devices_50eadaa.md

File metadata and controls

40 lines (32 loc) · 3.59 KB
loio
50eadaac8d2e49ee8996dc2b560cb76b

Adapting to Operating Systems And Devices

No need to worry about device specifics! OpenUI5 apps run on smartphones, tablets, and desktops. The UI controls automatically adapt themselves to each device's capabilities and make the most of the available real estate. supports several functions to adapt to operating systems and devices.

  • The Device API
    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.
  • Controls with Built-In Device Adaptation
    OpenUI5 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.
  • Checking the Operating System your Application is Running On
    A platform attribute as well as (in case of mobile platforms) a platform-dependent CSS class in the HTML tag offer important information and additional options for developers.
  • Content Densities
    The devices used to run apps that are developed with OpenUI5 run on various different operating systems and have very different screen sizes. OpenUI5 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.
  • Options for Further Adaptation
    In addition to those performed automatically by OpenUI5, the application can apply further platform adaptations.