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

Commit 807db3e

Browse files
YaAvigortok
authored andcommitted
added recents control plugin wrapper (#1264)
* 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 :|
1 parent 89b5f76 commit 807db3e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

dist/ng-cordova.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5579,6 +5579,7 @@ angular.module('ngCordova.plugins', [
55795579
'ngCordova.plugins.progressIndicator',
55805580
'ngCordova.plugins.push',
55815581
'ngCordova.plugins.push_v5',
5582+
'ngCordova.plugins.recentsControl',
55825583
'ngCordova.plugins.sms',
55835584
'ngCordova.plugins.socialSharing',
55845585
'ngCordova.plugins.spinnerDialog',
@@ -7058,4 +7059,4 @@ angular.module('ngCordova.plugins.zip', [])
70587059
};
70597060
}]);
70607061

7061-
})();
7062+
})();

src/plugins/recentsControl.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// install : cordova plugin add cordova-plugin-recentscontrol
2+
// link : https://github.com/smcpjames/cordova-plugin-recentscontrol
3+
4+
/* globals RecentsControl: true */
5+
angular.module('ngCordova.plugins.recentsControl', [])
6+
7+
.factory('$cordovaRecents', function () {
8+
return {
9+
setColor: function (color) {
10+
return RecentsControl.setColor(color);
11+
},
12+
13+
setDescription: function (desc) {
14+
return RecentsControl.setDescription(desc);
15+
},
16+
17+
setOptions: function (colorStr, desc) {
18+
return RecentsControl.setOptions(colorStr, desc);
19+
}
20+
};
21+
});

0 commit comments

Comments
 (0)