Device Sensor control
This control detects information about the current display, including browser, browser version, operating system, language, client (window) width, and total screen width. Use the Device Sensor control with other BPM UI toolkit controls to provide a coach that is optimized for the platform the coach is running on, such as displaying a mobile version on phones.
You can use this control only in conjunction with other
BPM UI toolkit controls.
Events
Set or modify the event handlers for the control in the Events tab. You can set events to be triggered programmatically or when a user interacts with the control. For information about how to define and code events, see User-defined events. The Device Sensor control 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 the Device Sensor control, see the JavaScript documentation.
Additional resources
For information about how to create a coach, see Building coaches.
For information about standard properties
(General, Configuration,
Positioning, Visibility, and HTML
Attributes), see Coach view properties.