Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8802

Re: UI5 sample code to detect running in desktop or browser

$
0
0

HI

 

Have your read this?

 

But depending on your own definition of the border you can detect e.g. touch capabilities by checking

var isTouchDevice = jQuery.support.touch; 

Based on this check there is also the following flag provided by UI5:

var runningOnDesktop = jQuery.device.is.desktop; 

Similarly, when not running on desktop browsers, one of the following is true:

var runningOnTablet = jQuery.device.is.tablet; var runningOnPhone = jQuery.device.is.phone;

-D


Viewing all articles
Browse latest Browse all 8802

Trending Articles