Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 398 Bytes

README.md

File metadata and controls

17 lines (16 loc) · 398 Bytes

isTVBox

This plugin will detect if app is running on android TV device or not.

Adding

cordova plugin add https://github.com/miloproductionsinc/cordova-plugin-isTvBox.git

USAGE

window.plugins.isTvBox.checkTvBox(function(success) {
    if(success === "TV Device"){
        // for tv
    } else{
        //for non tv
    }
  }, function(err) {
    console.log('Uh oh... ' + err);
  });