Check if camera is authorized

Is there a way to know if the camera has been authorized? I was looking at FuseJS/Camera, and it has a method “checkPermissions” but I cant access it. Am I doing something wrong?

Give this a try…

  Camera.checkPermissions()
    .then(function() {

    })
    .catch(function() {
      Camera.requestPermissions()
        .then(function() {
            console.log("PERMISSION YES")

        })
        .catch(function() {
            console.log("PERMISSION NO")
        });
    });