Get required information about the device with Artyom

The device property of artyom is a very simple object that have the following properties:

Property type Description
isMobile Boolean Returns true if the actual device is not a desktop or laptop
isChrome Boolean Returns true if the actual browser is Google Chrome

You can use it if you want to verify if the browser is chrome and warn the user about it (or in mobile devices where artyom can't force the voice):

let artyom = new Artyom();

// Verify if artyom is supported
window.onload = function(){
    if(artyom.Device.isChrome){
        if(!artyom.Device.isMobile){
            alert("Artyom can talk and obey commands in this browser, however the voice will be the default voice of the device. Cannot force language here.");
        }else{
            // Everything okay ! , use artyom normally here !
        }
    }else{
        alert("Artyom only works with The Google Chrome Browser !");
    }
};