API Reference 0.3.24dart_web_toolkit_eventTouchSupportDetectorNo

TouchSupportDetectorNo class

Detector for browsers that do not support touch events.

class TouchSupportDetectorNo extends TouchSupportDetector {

 bool isSupported() {
   return false;
 }
}

Extends

TouchSupportDetector > TouchSupportDetectorNo

Methods

bool detectTouchSupport() #

inherited from TouchSupportDetector
bool detectTouchSupport() {
 dart_html.DivElement elem = new dart_html.DivElement();
 try {
   elem.onTouchStart.listen((dart_html.Event evt){
     return;
   });
 } on Exception catch(e) {
   return false;
 }
 return true;
}

bool isSupported() #

bool isSupported() {
 return false;
}