GlideSystem - isMobile()

Determine if a request came from a mobile device.

This method can be used in UI action conditions and business rules.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the request comes from a mobile device; otherwise, false.

Scoped equivalent

To use the isMobile() method in a scoped application, use the corresponding scoped method: Scoped GlideSystem - isMobile().

if (gs.isMobile())
  gs.info("submitted from mobile UI");
 else 
   gs.info("NOT submitted from mobile UI");