Language: ENCN

Support API

Framework7 also comes with features detection library. After you initialize your app you can access myApp.support object which contains information about supported features:

myApp.support.touch boolean. Contains true if browser supports Touch events (touchstart, touchmove, touchend)

Access to Support object without/before initialization

It is also possible to access this Support object with all its parameters using prototype:

var support = Framework7.prototype.support;
if (support.touch) {
  console.log('Browser has touch event')
}