cordova-plugin-usage-stats-manager
v0.0.2
Published
Cordova Android plugin for accessing UsageStatsManager API
Downloads
4
Maintainers
Readme
cordova-usage-stats-manager
Cordova Android plugin for accessing UsageStatsManager API
Usage
To access to device usage history and statistics
var success = function(success){
console.log("Sucess :: " + success);
};
var error = function(error){
console.log("Error :: " + error);
};
UsageStatistics.getUsageStatistics("Daily", success, error);
If you need to prompt the user for permission
var success = function(success){
console.log("Sucess :: " + success);
};
var error = function(error){
console.log("Error :: " + error);
};
UsageStatistics.openPermissionSettings(success, error);