I would like to know if it is possible to identify whether a device is capable of Touch/Gesture Events or not in GWT?
Devices like iPhone supports Multi-Touch Events to a huge extent. Similarly Google Chrome in Desktop also supports TouchEvents. And at present, Windows 8 has been designed with an IE that is responding to TouchEvents.
I am working on an Application where i want to restrict certain features to only Touch/Gesture Capable Devices! Any Solution, please help?
I did this with User Agent Check in Deferred Binding. I created a white list so that more devices can be added later.
Here is the Code,
Then i defined my classes using the
replace-withproperty in my Module file. Here for example, i have replaced flash player with HTML5 videos for devices like iPad.