Skip to content

MobileAccord/cordova-usage-stats-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Cordova Android plugin for accessing UsageStatsManager API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published