@capgo/capacitor-android-usagestatsmanager
Capacitor plugin for accessing Android UsageStatsManager API.
Overview
Section titled “Overview”Capacitor plugin for accessing Android UsageStatsManager API.
Core Capabilities
Section titled “Core Capabilities”queryAndAggregateUsageStats- Queries and aggregates usage stats for the given time range.isUsageStatsPermissionGranted- Checks if the usage stats permission is granted.openUsageStatsSettings- Open the usage stats settings screen. This will open the usage stats settings screen, which allows the user to grant the usage stats permission. This will always open the settings screen, even if the permission is already granted.queryAllPackages- Queries all installed packages on the device. Requires the QUERY_ALL_PACKAGES permission.
Public API
Section titled “Public API”| Method | Description |
|---|---|
queryAndAggregateUsageStats | Queries and aggregates usage stats for the given time range. |
isUsageStatsPermissionGranted | Checks if the usage stats permission is granted. |
openUsageStatsSettings | Open the usage stats settings screen. This will open the usage stats settings screen, which allows the user to grant the usage stats permission. This will always open the settings screen, even if the permission is already granted. |
queryAllPackages | Queries all installed packages on the device. Requires the QUERY_ALL_PACKAGES permission. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-android-usagestatsmanager.