title: Cordova brightness plugin with ionic framework
body: <p>I'm using <a href="https://github.com/mgcrea/cordova-plugin-brightness" rel="nofollow">https://github.com/mgcrea/cordova-plugin-brightness</a></p>
  
  <p>I have figured out the setBrightness to work in an Ionic app.
  But I can't figure out the getBrightness to work. Any pointer on how got get it to work are appreciated. </p>
  
  <p>This is my setBrightness:</p>
  
  <pre><code>  $scope.changeBrightness = function (newBrightness) {
      myBrightness = parseFloat(newBrightness)/1000;
      if (window.cordova &amp;&amp; window.cordova.plugins.brightness) {
        var LightControl = cordova.plugins.brightness;
        LightControl.setBrightness(myBrightness);
      }
    }
  </code></pre>
  
  <p>LightControl.getBrightness(); But then? How do I handle the success or fail?</p>