Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
added recents control plugin wrapper (#1264)
Browse files Browse the repository at this point in the history
* added recents control plugin

* built added recents control plugin

* added plugin to plugin list

* added tts plugin wrapper

* commit only tts.js

* only commit plugin

* only commit recents plugin

* remove tts plugin

* added plugin to list

* added coma :|
  • Loading branch information
YaAvi authored and gortok committed Jul 6, 2016
1 parent 89b5f76 commit 807db3e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/ng-cordova.js
Original file line number Diff line number Diff line change
Expand Up @@ -5579,6 +5579,7 @@ angular.module('ngCordova.plugins', [
'ngCordova.plugins.progressIndicator',
'ngCordova.plugins.push',
'ngCordova.plugins.push_v5',
'ngCordova.plugins.recentsControl',
'ngCordova.plugins.sms',
'ngCordova.plugins.socialSharing',
'ngCordova.plugins.spinnerDialog',
Expand Down Expand Up @@ -7058,4 +7059,4 @@ angular.module('ngCordova.plugins.zip', [])
};
}]);

})();
})();
21 changes: 21 additions & 0 deletions src/plugins/recentsControl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// install : cordova plugin add cordova-plugin-recentscontrol
// link : https://github.com/smcpjames/cordova-plugin-recentscontrol

/* globals RecentsControl: true */
angular.module('ngCordova.plugins.recentsControl', [])

.factory('$cordovaRecents', function () {
return {
setColor: function (color) {
return RecentsControl.setColor(color);
},

setDescription: function (desc) {
return RecentsControl.setDescription(desc);
},

setOptions: function (colorStr, desc) {
return RecentsControl.setOptions(colorStr, desc);
}
};
});

0 comments on commit 807db3e

Please sign in to comment.