code: function(type, callback) {
                  var deferred = $q.defer();
  
                  this.isAvailable().then(function() {
                      quickActionHandler[type] = callback;
                      window.ThreeDeeTouch.onHomeIconPressed = createQuickActionHandler(quickActionHandler);
                      deferred.resolve(true);
                  },
                  function(err) {
                      deferred.reject(err);
                  });
  
                  return deferred.promise;
              }
docs: /*
  Add a quick action handler. Used for static quick actions
  
  @param    string type
  @param    function callback
  @return   promise