Device sensor

Draft comment:
This topic is shared by BAW, CP4BA, CP4BASaaS. Last updated on 2025-01-20 10:38
Detects and displays device information, and changes the behavior and display of a page depending on the platform it runs on. For example, it displays a mobile version on phones.
You can use this view only in conjunction with other UI toolkit views.

Events

Set or modify the event handlers for the view in the Events properties. You can set events to be triggered programmatically or when a user interacts with the view. For information about how to define and code events, see User-defined events. The Device sensor view has the following types of event handlers:
  • On load: Activated when the view is loaded. For example,
    console.log("Device info ready")

Methods

For information about the methods for Device sensor, see the Device sensor JavaScript API.

Additional resources

For information about how to create a coach or page, see Building coaches.
For information about standard properties (General, Configuration, Positioning, Visibility, and HTML Attributes), see View properties.